aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index c68632100a..abcfbd0965 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -2830,6 +2830,7 @@ static void do_code_gen(CodeGen *g) {
arg_no = var->gen_arg_index + 1;
var->is_ptr = false;
+ assert(var->gen_arg_index >= 0);
var->value_ref = LLVMGetParam(fn, var->gen_arg_index);
} else {
tag = LLVMZigTag_DW_auto_variable();