aboutsummaryrefslogtreecommitdiff
path: root/src/AstGen.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/AstGen.zig')
-rw-r--r--src/AstGen.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig
index cb5fd161a7..bd8f06ae59 100644
--- a/src/AstGen.zig
+++ b/src/AstGen.zig
@@ -7646,6 +7646,7 @@ fn cImport(
const block_inst = try gz.makeBlockInst(.c_import, node);
const block_result = try expr(&block_scope, &block_scope.base, .none, body_node);
+ _ = try gz.addUnNode(.ensure_result_used, block_result, node);
if (!gz.refIsNoReturn(block_result)) {
_ = try block_scope.addBreak(.break_inline, block_inst, .void_value);
}