aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-04-19 14:12:13 -0400
committerGitHub <noreply@github.com>2022-04-19 14:12:13 -0400
commit9c2cbe39c2caa9137e1123fcdf2f326282cad1b5 (patch)
treeda31a6f7307bcf03a87be3c7497600667b3a7c25 /src/stage1/codegen.cpp
parent78f26b970e1c5c288e45d0edd2ab2f229e6fe924 (diff)
parentbe08d2bdbd2f64ccb9ef0f985a57a4bf89b9aebb (diff)
downloadzig-9c2cbe39c2caa9137e1123fcdf2f326282cad1b5.tar.gz
zig-9c2cbe39c2caa9137e1123fcdf2f326282cad1b5.zip
Merge pull request #11461 from Luukdegram/wasm-debug-info
Wasm: add support for debug information
Diffstat (limited to 'src/stage1/codegen.cpp')
-rw-r--r--src/stage1/codegen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stage1/codegen.cpp b/src/stage1/codegen.cpp
index 40e4440102..3a83d93310 100644
--- a/src/stage1/codegen.cpp
+++ b/src/stage1/codegen.cpp
@@ -2645,6 +2645,9 @@ static LLVMValueRef ir_render_save_err_ret_addr(CodeGen *g, Stage1Air *executabl
Stage1AirInstSaveErrRetAddr *save_err_ret_addr_instruction)
{
assert(g->have_err_ret_tracing);
+ if ((target_is_wasm(g->zig_target) && g->zig_target->os != OsEmscripten) || target_is_bpf(g->zig_target)) {
+ return nullptr;
+ }
LLVMValueRef return_err_fn = get_return_err_fn(g);
bool is_llvm_alloca;