diff options
-rw-r--r-- | src/passes/Flatten.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/passes/Flatten.cpp b/src/passes/Flatten.cpp index 8ddd8632a..37fa15b11 100644 --- a/src/passes/Flatten.cpp +++ b/src/passes/Flatten.cpp @@ -329,6 +329,11 @@ struct Flatten } } + if (curr->is<BrOn>() || curr->is<TryTable>()) { + Fatal() << "Unsupported instruction for Flatten: " + << getExpressionName(curr); + } + // continue for general handling of everything, control flow or otherwise curr = getCurrent(); // we may have replaced it // we have changed children |