Skip to content

Commit

Permalink
Bug 1751554 - wasm: Skip phi fixup when wasm-eh is not compiled in. r…
Browse files Browse the repository at this point in the history
  • Loading branch information
eqrion committed Jan 24, 2022
1 parent b8a01fd commit 5dc9c54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/src/wasm/WasmIonCompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2485,6 +2485,7 @@ class FunctionCompiler {
// Pending jumps to an enclosing try-catch may reference the recycled phis.
// We have to search above all enclosing try blocks, as a delegate may move
// patches around.
#ifdef ENABLE_WASM_EXCEPTIONS
for (uint32_t depth = 0; depth < iter().controlStackDepth(); depth++) {
if (iter().controlKind(depth) != LabelKind::Try) {
continue;
Expand All @@ -2497,6 +2498,7 @@ class FunctionCompiler {
}
}
}
#endif

// Discard redundant phis and add to the free list.
for (MPhiIterator phi = loopEntry->phisBegin();
Expand Down

0 comments on commit 5dc9c54

Please sign in to comment.