diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-06-11 00:27:10 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-06-11 00:27:10 -0400 |
| commit | 7411a88d5f8109ced238cf14205ae36575f02f21 (patch) | |
| tree | c61dd9c7a046e113509dc96c8a1bd42d57ce21dc /src/ir.cpp | |
| parent | 33371ab55c01d896b91df13eafe6e5c601400a07 (diff) | |
| download | zig-7411a88d5f8109ced238cf14205ae36575f02f21.tar.gz zig-7411a88d5f8109ced238cf14205ae36575f02f21.zip | |
fix comptime function calls
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 07df62fd02..1ea509745e 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -8503,6 +8503,8 @@ static ConstExprValue *ir_exec_const_result(CodeGen *codegen, IrExecutable *exec IrBasicBlock *bb = exec->basic_block_list.at(0); for (size_t i = 0; i < bb->instruction_list.length; i += 1) { IrInstruction *instruction = bb->instruction_list.at(i); + if (scope_is_elided(instruction->scope)) + continue; if (instruction->id == IrInstructionIdReturn) { IrInstructionReturn *ret_inst = (IrInstructionReturn *)instruction; IrInstruction *value = ret_inst->value; |
