diff options
Diffstat (limited to 'src/passes')
-rw-r--r-- | src/passes/Print.cpp | 6 | ||||
-rw-r--r-- | src/passes/StackIR.cpp | 9 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 948e8d239..ecdfe16eb 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -3550,7 +3550,8 @@ static std::ostream& printStackIR(StackIR* ir, PrintSExpression& printer) { [[fallthrough]]; case StackInst::BlockBegin: case StackInst::IfBegin: - case StackInst::LoopBegin: { + case StackInst::LoopBegin: + case StackInst::TryTableBegin: { controlFlowDepth++; doIndent(); PrintExpressionContents(printer).visit(inst->origin); @@ -3562,7 +3563,8 @@ static std::ostream& printStackIR(StackIR* ir, PrintSExpression& printer) { [[fallthrough]]; case StackInst::BlockEnd: case StackInst::IfEnd: - case StackInst::LoopEnd: { + case StackInst::LoopEnd: + case StackInst::TryTableEnd: { controlFlowDepth--; indent--; doIndent(); diff --git a/src/passes/StackIR.cpp b/src/passes/StackIR.cpp index c57bea83f..24b4fcbe8 100644 --- a/src/passes/StackIR.cpp +++ b/src/passes/StackIR.cpp @@ -292,7 +292,8 @@ private: case StackInst::Catch: case StackInst::CatchAll: case StackInst::Delegate: - case StackInst::TryEnd: { + case StackInst::TryEnd: + case StackInst::TryTableEnd: { return true; } default: { return false; } @@ -305,7 +306,8 @@ private: case StackInst::BlockBegin: case StackInst::IfBegin: case StackInst::LoopBegin: - case StackInst::TryBegin: { + case StackInst::TryBegin: + case StackInst::TryTableBegin: { return true; } default: { return false; } @@ -319,7 +321,8 @@ private: case StackInst::IfEnd: case StackInst::LoopEnd: case StackInst::TryEnd: - case StackInst::Delegate: { + case StackInst::Delegate: + case StackInst::TryTableEnd: { return true; } default: { return false; } |