Skip to content

Commit af41e25

Browse files
committed
unconditional boundary pad for fn end -- fine for empty fn
1 parent 528f8b4 commit af41e25

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

zjit/src/backend/lir.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,11 +1918,10 @@ impl Assembler
19181918
}
19191919

19201920
// Make sure we don't stomp on the next function
1921-
if !block_ids.is_empty() {
1922-
push_insns_with_perf_symbol(&mut insns, "BoundaryPad", |insns| {
1923-
insns.push(Insn::BoundaryPad);
1924-
});
1925-
}
1921+
push_insns_with_perf_symbol(&mut insns, "BoundaryPad", |insns| {
1922+
insns.push(Insn::BoundaryPad);
1923+
});
1924+
19261925
insns
19271926
}
19281927

0 commit comments

Comments
 (0)