diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-12-22 00:55:21 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-12-22 00:55:21 -0500 |
| commit | 5fc95c2a538b10ad346273112b1d4ed5371f8135 (patch) | |
| tree | f0700978c5f7f51e37b45b74c9d79e66d3afcb1c /src/ir.cpp | |
| parent | 46033a2128b09ed15f38f6ed2602bf80989a770f (diff) | |
| download | zig-5fc95c2a538b10ad346273112b1d4ed5371f8135.tar.gz zig-5fc95c2a538b10ad346273112b1d4ed5371f8135.zip | |
IR: port some tests
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 79f561b7c7..8a041aa4ad 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -5462,7 +5462,7 @@ static TypeTableEntry *ir_analyze_ref(IrAnalyze *ira, IrInstruction *source_inst ConstExprValue *val = ir_resolve_const(ira, value, UndefBad); if (!val) return ira->codegen->builtin_types.entry_invalid; - bool ptr_is_const = true; + bool ptr_is_const = false; return ir_analyze_const_ptr(ira, source_instruction, val, value->type_entry, false, ConstPtrSpecialNone, ptr_is_const); } |
