diff options
Diffstat (limited to 'lib/Expr/ExprVisitor.cpp')
-rw-r--r-- | lib/Expr/ExprVisitor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Expr/ExprVisitor.cpp b/lib/Expr/ExprVisitor.cpp index c81199d7..cf75974a 100644 --- a/lib/Expr/ExprVisitor.cpp +++ b/lib/Expr/ExprVisitor.cpp @@ -91,6 +91,8 @@ ref<Expr> ExprVisitor::visitActual(const ref<Expr> &e) { } switch(res.kind) { + default: + assert(0 && "invalid kind"); case Action::DoChildren: { bool rebuild = false; ref<Expr> e(&ep), kids[8]; @@ -117,8 +119,6 @@ ref<Expr> ExprVisitor::visitActual(const ref<Expr> &e) { return e; case Action::ChangeTo: return res.argument; - default: - assert(0 && "invalid kind"); } } } |