aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-03-26 03:39:18 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-03-26 03:39:18 -0400
commit7c53230a61568411e1375e1230df1ceaf1e462de (patch)
tree5a92be90eaaf6db480c95ba42e32a4f430fd1da7 /src/ir.cpp
parent5c04730534ea7933855429c5fc5dc7b22eba7bc2 (diff)
downloadzig-7c53230a61568411e1375e1230df1ceaf1e462de.tar.gz
zig-7c53230a61568411e1375e1230df1ceaf1e462de.zip
introduce copyable concept
closes #103
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index ca80f58677..b6a7c08a0e 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -9905,7 +9905,6 @@ static TypeTableEntry *ir_analyze_instruction_size_of(IrAnalyze *ira,
case TypeTableEntryIdNumLitInt:
case TypeTableEntryIdBoundFn:
case TypeTableEntryIdMetaType:
- case TypeTableEntryIdFn:
case TypeTableEntryIdNamespace:
case TypeTableEntryIdArgTuple:
ir_add_error_node(ira, size_of_instruction->base.source_node,
@@ -9925,6 +9924,7 @@ static TypeTableEntry *ir_analyze_instruction_size_of(IrAnalyze *ira,
case TypeTableEntryIdEnum:
case TypeTableEntryIdUnion:
case TypeTableEntryIdEnumTag:
+ case TypeTableEntryIdFn:
{
uint64_t size_in_bytes = type_size(ira->codegen, type_entry);
ConstExprValue *out_val = ir_build_const_from(ira, &size_of_instruction->base);