aboutsummaryrefslogtreecommitdiff
path: root/src/stage1
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-06-28 01:34:46 -0400
committerGitHub <noreply@github.com>2022-06-28 01:34:46 -0400
commit975a66080790956bb5591dc8aaef6e7725e72e56 (patch)
tree53d36639292305eef06d624aa496f47d9687598a /src/stage1
parent1188415f4cb73440fde05047cd8e6b79a2255efa (diff)
parenta71d00a4d504edfdb09cd169d29ca1bbc0b909c4 (diff)
downloadzig-975a66080790956bb5591dc8aaef6e7725e72e56.tar.gz
zig-975a66080790956bb5591dc8aaef6e7725e72e56.zip
Merge pull request #11945 from ziglang/stage2-std
stage2 fixes towards standard library tests passing
Diffstat (limited to 'src/stage1')
-rw-r--r--src/stage1/codegen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stage1/codegen.cpp b/src/stage1/codegen.cpp
index d6fb6d4753..318a90732c 100644
--- a/src/stage1/codegen.cpp
+++ b/src/stage1/codegen.cpp
@@ -6764,8 +6764,8 @@ static LLVMValueRef ir_render_return_address(CodeGen *g, Stage1Air *executable,
Stage1AirInstReturnAddress *instruction)
{
if ((target_is_wasm(g->zig_target) && g->zig_target->os != OsEmscripten) || target_is_bpf(g->zig_target)) {
- // I got this error from LLVM 10:
- // "Non-Emscripten WebAssembly hasn't implemented __builtin_return_address"
+ // LLVM 13 reports "Non-Emscripten WebAssembly hasn't implemented __builtin_return_address"
+ // https://github.com/ziglang/zig/issues/11946
return LLVMConstNull(get_llvm_type(g, instruction->base.value->type));
}