diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-12-26 16:04:14 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-12-26 16:04:14 -0500 |
| commit | c8a7ab7eff0f261c47926cf0637e919d42e41940 (patch) | |
| tree | e06648c3784b8fdfcd626b34956565fccc5d7454 /src/ir_print.cpp | |
| parent | 7504be923b1721a5a5e094a306aad029887270e8 (diff) | |
| download | zig-c8a7ab7eff0f261c47926cf0637e919d42e41940.tar.gz zig-c8a7ab7eff0f261c47926cf0637e919d42e41940.zip | |
IR: pass cStringConcatenation test
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 3db8b32e4f..ebbcf6feae 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -100,6 +100,8 @@ static void ir_print_const_value(IrPrint *irp, ConstExprValue *const_val) { fprintf(irp->f, "&"); if (const_val->data.x_ptr.special == ConstPtrSpecialRuntime) { fprintf(irp->f, "(runtime pointer value)"); + } else if (const_val->data.x_ptr.special == ConstPtrSpecialCStr) { + fprintf(irp->f, "(c str lit)"); } else { ir_print_const_value(irp, const_ptr_pointee(const_val)); } |
