Commit 2b698888ce

Andrew Kelley <andrew@ziglang.org>
2019-09-13 20:41:59
fix regression from incorrect conflict resolution in prev commit
thanks for catching this LemonBoy
1 parent 187a6d1
Changed files (1)
src/codegen.cpp
@@ -516,9 +516,9 @@ static LLVMValueRef make_fn_llvm_value(CodeGen *g, ZigFn *fn) {
             }
         }
         if (g->have_stack_probing && !fn->def_scope->safety_off) {
-            addLLVMFnAttrStr(fn->llvm_value, "probe-stack", "__zig_probe_stack");
+            addLLVMFnAttrStr(llvm_fn, "probe-stack", "__zig_probe_stack");
         } else {
-            addLLVMFnAttrStr(fn->llvm_value, "no-stack-arg-probe", "");
+            addLLVMFnAttrStr(llvm_fn, "no-stack-arg-probe", "");
         }
     } else {
         maybe_import_dll(g, llvm_fn, linkage);