@@ -355,7 +355,6 @@ class WebAssemblyLowerEmscriptenEHSjLj final : public ModulePass {
355
355
SmallVectorImpl<PHINode *> &SetjmpRetPHIs);
356
356
void
357
357
handleLongjmpableCallsForWasmSjLj (Function &F, InstVector &SetjmpTableInsts,
358
- InstVector &SetjmpTableSizeInsts,
359
358
SmallVectorImpl<PHINode *> &SetjmpRetPHIs);
360
359
Function *getFindMatchingCatch (Module &M, unsigned NumClauses);
361
360
@@ -1417,8 +1416,7 @@ bool WebAssemblyLowerEmscriptenEHSjLj::runSjLjOnFunction(Function &F) {
1417
1416
handleLongjmpableCallsForEmscriptenSjLj (
1418
1417
F, SetjmpTableInsts, SetjmpTableSizeInsts, SetjmpRetPHIs);
1419
1418
else // EnableWasmSjLj
1420
- handleLongjmpableCallsForWasmSjLj (F, SetjmpTableInsts, SetjmpTableSizeInsts,
1421
- SetjmpRetPHIs);
1419
+ handleLongjmpableCallsForWasmSjLj (F, SetjmpTableInsts, SetjmpRetPHIs);
1422
1420
1423
1421
// Erase everything we no longer need in this function
1424
1422
for (Instruction *I : ToErase)
@@ -1712,7 +1710,7 @@ static BasicBlock *getCleanupRetUnwindDest(const CleanupPadInst *CPI) {
1712
1710
// BBs. Refer to 4) of "Wasm setjmp/longjmp handling" section in the comments at
1713
1711
// top of the file for details.
1714
1712
void WebAssemblyLowerEmscriptenEHSjLj::handleLongjmpableCallsForWasmSjLj (
1715
- Function &F, InstVector &SetjmpTableInsts, InstVector &SetjmpTableSizeInsts,
1713
+ Function &F, InstVector &SetjmpTableInsts,
1716
1714
SmallVectorImpl<PHINode *> &SetjmpRetPHIs) {
1717
1715
Module &M = *F.getParent ();
1718
1716
LLVMContext &C = F.getContext ();
@@ -1739,7 +1737,6 @@ void WebAssemblyLowerEmscriptenEHSjLj::handleLongjmpableCallsForWasmSjLj(
1739
1737
// Arbitrarily use the ones defined in the beginning of the function.
1740
1738
// SSAUpdater will later update them to the correct values.
1741
1739
Instruction *SetjmpTable = *SetjmpTableInsts.begin ();
1742
- Instruction *SetjmpTableSize = *SetjmpTableSizeInsts.begin ();
1743
1740
1744
1741
// Add setjmp.dispatch BB right after the entry block. Because we have
1745
1742
// initialized setjmpTable/setjmpTableSize in the entry block and split the
0 commit comments