aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/codegen.cpp
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-04-17 19:41:05 +0200
committerLuuk de Gram <luuk@degram.dev>2022-04-19 19:58:49 +0200
commitbe08d2bdbd2f64ccb9ef0f985a57a4bf89b9aebb (patch)
tree727d36adc443701b6aa8221797dc082f3670a290 /src/stage1/codegen.cpp
parent2193f7c4a2b56f67bf07d27c3f715cf3969c392f (diff)
downloadzig-be08d2bdbd2f64ccb9ef0f985a57a4bf89b9aebb.tar.gz
zig-be08d2bdbd2f64ccb9ef0f985a57a4bf89b9aebb.zip
wasm: Fix unreachable paths
When the last instruction is a debug instruction, the type of it is void. Similarly for 'noreturn' emit an 'unreachable' instruction to tell the wasm-validator the path cannot be reached. Also respect the '--strip' flag in the self-hosted wasm linker and not emit a 'name' section when the flag is set to `true`.
Diffstat (limited to 'src/stage1/codegen.cpp')
0 files changed, 0 insertions, 0 deletions