diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-11-19 01:53:14 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-11-19 01:53:14 -0500 |
| commit | 2f8dd46174821a12205f939cda51f0fb4765475f (patch) | |
| tree | 081d54c71464abc69f238540d4d25df2b53af0d4 /src/ir_print.cpp | |
| parent | 8a81f8aa1388331624e4c073e2534d3a987a7d9a (diff) | |
| download | zig-2f8dd46174821a12205f939cda51f0fb4765475f.tar.gz zig-2f8dd46174821a12205f939cda51f0fb4765475f.zip | |
IR: error for uncasted null lit variable
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index dc0b65328b..1bf7776371 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -100,11 +100,15 @@ static void ir_print_const_value(IrPrint *irp, TypeTableEntry *type_entry, Const fprintf(irp->f, "}"); break; } + case TypeTableEntryIdNullLit: + { + fprintf(irp->f, "null"); + break; + } case TypeTableEntryIdVar: case TypeTableEntryIdFloat: case TypeTableEntryIdStruct: case TypeTableEntryIdUndefLit: - case TypeTableEntryIdNullLit: case TypeTableEntryIdMaybe: case TypeTableEntryIdErrorUnion: case TypeTableEntryIdPureError: |
