summaryrefslogtreecommitdiff
path: root/src/cfg/Relooper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cfg/Relooper.cpp')
-rw-r--r--src/cfg/Relooper.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cfg/Relooper.cpp b/src/cfg/Relooper.cpp
index d46b39a8e..0c9b581bd 100644
--- a/src/cfg/Relooper.cpp
+++ b/src/cfg/Relooper.cpp
@@ -378,10 +378,10 @@ wasm::Expression* Block::Render(RelooperBuilder& Builder, bool InLoop) {
// breaking on Outer leads to the content in NextOuter
Outer->name = CurrName;
NextOuter->list.push_back(CurrContent);
- // if this is not a dead end, also need to break to the outside
- // this is both an optimization, and avoids incorrectness as adding
- // a brak in unreachable code can make a place look reachable that isn't
- if (CurrContent->type != wasm::unreachable) {
+ // if this is not a dead end, also need to break to the outside this is
+ // both an optimization, and avoids incorrectness as adding a break in
+ // unreachable code can make a place look reachable that isn't
+ if (CurrContent->type != wasm::Type::unreachable) {
NextOuter->list.push_back(Builder.makeBreak(SwitchLeave));
}
// prepare for more nesting
@@ -835,7 +835,7 @@ private:
}
}
NewList.push_back(Curr);
- if (Curr->type == wasm::unreachable) {
+ if (Curr->type == wasm::Type::unreachable) {
SeenUnreachableType = true;
}
};