Merge pull request #2449 from bytecodealliance/cfallin/add-pre-host-hooks

Add FuncEnvironment hooks to generate prologue and epilogue code.
This commit is contained in:
Nick Fitzgerald
2020-11-24 17:48:29 -08:00
committed by GitHub
3 changed files with 23 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ impl UnwindInfoGenerator<Inst> for AArch64UnwindInfo {
// TODO epilogues
let prologue_size = if context.prologue.is_empty() {
let prologue_size = if context.prologue.len() == 0 {
0
} else {
context.insts_layout[context.prologue.end as usize - 1]