diff options
Diffstat (limited to 'src/cfg')
-rw-r--r-- | src/cfg/Relooper.cpp | 10 | ||||
-rw-r--r-- | src/cfg/Relooper.h | 2 |
2 files changed, 6 insertions, 6 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; } }; diff --git a/src/cfg/Relooper.h b/src/cfg/Relooper.h index 6b38816d0..f13d02711 100644 --- a/src/cfg/Relooper.h +++ b/src/cfg/Relooper.h @@ -50,7 +50,7 @@ public: : wasm::Builder(wasm), labelHelper(labelHelper) {} wasm::LocalGet* makeGetLabel() { - return makeLocalGet(labelHelper, wasm::i32); + return makeLocalGet(labelHelper, wasm::Type::i32); } wasm::LocalSet* makeSetLabel(wasm::Index value) { return makeLocalSet(labelHelper, makeConst(wasm::Literal(int32_t(value)))); |