diff options
| author | gingerBill <bill@gingerbill.org> | 2018-07-29 10:50:15 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-07-29 10:50:15 +0100 |
| commit | 6512a3e5f24a3aecb1451f921455a93231412104 (patch) | |
| tree | e784404bf3ad291c54314e9ab9690e9bd9da754f /src/ir.cpp | |
| parent | 49f2124df0f644e183f0570dd047493678eaf9f1 (diff) | |
using Foo :: enum {A, B, C}; len(Foo)
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index e546015d7..3a7691326 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -8163,8 +8163,8 @@ void ir_setup_type_info_data(irProcedure *proc) { // NOTE(bill): Setup type_info irValue *base = ir_type_info(proc, t->Enum.base_type); ir_emit_store(proc, ir_emit_struct_ep(proc, tag, 0), base); - // is_export - ir_emit_store(proc, ir_emit_struct_ep(proc, tag, 3), ir_const_bool(t->Enum.is_export)); + // is_using + ir_emit_store(proc, ir_emit_struct_ep(proc, tag, 3), ir_const_bool(t->Enum.is_using)); if (t->Enum.fields.count > 0) { auto fields = t->Enum.fields; |