diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-12-10 12:28:28 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-12-10 12:28:28 -0500 |
| commit | fd6b7b160d1fddf967177cf26704908aa7bf5f12 (patch) | |
| tree | 438d5732638163b907968ac1f443797d42ad2c3d /src/ir.cpp | |
| parent | 29fd727b79682a0f3e8ad7340cf86db989b9109e (diff) | |
| download | zig-fd6b7b160d1fddf967177cf26704908aa7bf5f12.tar.gz zig-fd6b7b160d1fddf967177cf26704908aa7bf5f12.zip | |
improve dynamic library API
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 5a15b64549..8b588b5dee 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -6561,6 +6561,7 @@ static IrInstruction *ir_gen_prefix_op_id(IrBuilder *irb, Scope *scope, AstNode } static IrInstruction *ir_expr_wrap(IrBuilder *irb, Scope *scope, IrInstruction *inst, ResultLoc *result_loc) { + if (inst == irb->codegen->invalid_instruction) return inst; ir_build_end_expr(irb, scope, inst->source_node, inst, result_loc); return inst; } |
