aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-12-26 16:04:14 -0500
committerAndrew Kelley <superjoe30@gmail.com>2016-12-26 16:04:14 -0500
commitc8a7ab7eff0f261c47926cf0637e919d42e41940 (patch)
treee06648c3784b8fdfcd626b34956565fccc5d7454 /src/ir_print.cpp
parent7504be923b1721a5a5e094a306aad029887270e8 (diff)
downloadzig-c8a7ab7eff0f261c47926cf0637e919d42e41940.tar.gz
zig-c8a7ab7eff0f261c47926cf0637e919d42e41940.zip
IR: pass cStringConcatenation test
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp2
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));
}