Skip to content

Commit 67b7839

Browse files
committed
Update comment
1 parent 37a56fc commit 67b7839

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2057,7 +2057,8 @@ static void findUnwindDestinations(
20572057
break;
20582058
} else if (isa<CleanupPadInst>(Pad)) {
20592059
// Stop on cleanup pads. Cleanups are always funclet entries for all known
2060-
// personalities.
2060+
// personalities except Wasm. And in Wasm this becomes a catch_all(_ref),
2061+
// which always catches an exception.
20612062
UnwindDests.emplace_back(FuncInfo.getMBB(EHPadBB), Prob);
20622063
UnwindDests.back().first->setIsEHScopeEntry();
20632064
// In Wasm, EH scopes are not funclets

0 commit comments

Comments
 (0)