From 7c53230a61568411e1375e1230df1ceaf1e462de Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 26 Mar 2017 03:39:18 -0400 Subject: introduce copyable concept closes #103 --- src/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir.cpp') 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); -- cgit v1.2.3