Skip to content

Commit

Permalink
update inlining check for visit_END
Browse files Browse the repository at this point in the history
  • Loading branch information
thelongmarch-azx committed Nov 25, 2024
1 parent 8cce635 commit 075bf01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/compiler/SinglePassCompiler.v3
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ class SinglePassCompiler(xenv: SpcExecEnv, masm: MacroAssembler, regAlloc: RegAl
setUnreachable();
}
def visit_END() {
if (this.local_base_sp == 0) {
if (!this.is_inlined) {
var ctl_top = state.ctl_stack.peek();
if (ctl_top.opcode == Opcode.LOOP.code) {
state.ctl_stack.pop();
Expand Down

0 comments on commit 075bf01

Please sign in to comment.