aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2019-10-12 16:47:51 +0200
committerLemonBoy <thatlemon@gmail.com>2019-10-12 16:47:51 +0200
commitf77b0b90d8daedf30e86ab09d292158e0b9af353 (patch)
treef0a17fc830c18031ed668c9284fd965199d49941 /src/codegen.cpp
parent3ea0a76fb66bd94ea4b1381f58791513fadf6a04 (diff)
downloadzig-f77b0b90d8daedf30e86ab09d292158e0b9af353.tar.gz
zig-f77b0b90d8daedf30e86ab09d292158e0b9af353.zip
Correctly mangle frameaddress intrinsic name
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 5d1f2b8bf9..9f32e3dd35 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -5256,7 +5256,7 @@ static LLVMValueRef get_frame_address_fn_val(CodeGen *g) {
LLVMTypeRef fn_type = LLVMFunctionType(get_llvm_type(g, return_type),
&g->builtin_types.entry_i32->llvm_type, 1, false);
- g->frame_address_fn_val = LLVMAddFunction(g->module, "llvm.frameaddress", fn_type);
+ g->frame_address_fn_val = LLVMAddFunction(g->module, "llvm.frameaddress.p0i8", fn_type);
assert(LLVMGetIntrinsicID(g->frame_address_fn_val));
return g->frame_address_fn_val;