Skip to content

Commit ccb99d8

Browse files
aheejindschuff
andauthored
Apply suggestions from code review
Co-authored-by: Derek Schuff <[email protected]>
1 parent 82d4b33 commit ccb99d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ WebAssemblyCFGStackify::getTrampolineBlock(MachineBasicBlock *UnwindDest) {
13601360
.addReg(ExnReg);
13611361

13621362
// The trampoline BB's return type is exnref because it is a target of
1363-
// catch_all_ref. But the body type of the blodk we just created is not. We
1363+
// catch_all_ref. But the body type of the block we just created is not. We
13641364
// add an 'unreachable' right before the 'end_block' to make the code valid.
13651365
MachineBasicBlock *TrampolineLayoutPred = TrampolineBB->getPrevNode();
13661366
BuildMI(TrampolineLayoutPred, TrampolineLayoutPred->findBranchDebugLoc(),
@@ -1953,7 +1953,7 @@ bool WebAssemblyCFGStackify::fixCallUnwindMismatches(MachineFunction &MF) {
19531953
if (!WebAssembly::WasmUseLegacyEH)
19541954
for (auto &[UnwindDest, _] : UnwindDestToTryRanges) {
19551955
auto It = EHPadToTry.find(UnwindDest);
1956-
// If UnwindDest is the faker caller block, it will not be in EHPadToTry
1956+
// If UnwindDest is the fake caller block, it will not be in EHPadToTry
19571957
// map
19581958
if (It != EHPadToTry.end()) {
19591959
auto *TryTable = It->second;
@@ -2197,7 +2197,7 @@ bool WebAssemblyCFGStackify::fixCatchUnwindMismatches(MachineFunction &MF) {
21972197
// destinations, we should split the end_loop into another BB.
21982198
for (auto &[_, UnwindDest] : EHPadToUnwindDest) {
21992199
auto It = EHPadToTry.find(UnwindDest);
2200-
// If UnwindDest is the faker caller block, it will not be in EHPadToTry map
2200+
// If UnwindDest is the fake caller block, it will not be in EHPadToTry map
22012201
if (It != EHPadToTry.end()) {
22022202
auto *TryTable = It->second;
22032203
auto *EndTryTable = BeginToEnd[TryTable];

0 commit comments

Comments
 (0)