File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/lib/Target/WebAssembly Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1767,7 +1767,7 @@ void WebAssemblyLowerEmscriptenEHSjLj::handleLongjmpableCallsForWasmSjLj(
1767
1767
I->eraseFromParent ();
1768
1768
1769
1769
// Add entries for new predecessors to phis in unwind destinations. We use
1770
- // 'undef ' as a placeholder value. We should make sure the phis have a valid
1770
+ // 'poison ' as a placeholder value. We should make sure the phis have a valid
1771
1771
// set of predecessors before running SSAUpdater, because SSAUpdater
1772
1772
// internally can use existing phis to gather predecessor info rather than
1773
1773
// scanning the actual CFG (See FindPredecessorBlocks in SSAUpdater.cpp for
@@ -1776,7 +1776,7 @@ void WebAssemblyLowerEmscriptenEHSjLj::handleLongjmpableCallsForWasmSjLj(
1776
1776
for (PHINode &PN : UnwindDest->phis ()) {
1777
1777
for (auto *NewPred : NewPreds) {
1778
1778
assert (PN.getBasicBlockIndex (NewPred) == -1 );
1779
- PN.addIncoming (UndefValue ::get (PN.getType ()), NewPred);
1779
+ PN.addIncoming (PoisonValue ::get (PN.getType ()), NewPred);
1780
1780
}
1781
1781
}
1782
1782
}
You can’t perform that action at this time.
0 commit comments