about summary refs log tree commit diff homepage
path: root/lib/Expr
diff options
context:
space:
mode:
authorDaniel Schemmel <daniel.schemmel@comsys.rwth-aachen.de>2018-05-25 13:04:54 +0200
committerCristian Cadar <c.cadar@imperial.ac.uk>2018-06-29 11:19:00 +0100
commitcb1e6302f0a436eaad08014a22f4265b64b379d3 (patch)
tree701d96f32688c0e692e7b982d90d673776662896 /lib/Expr
parent296a54ec9a2e753a1f5d1c426fb7c5e7575e9dcb (diff)
downloadklee-cb1e6302f0a436eaad08014a22f4265b64b379d3.tar.gz
Fix the final -Wimplicit-fallthrough warning
Diffstat (limited to 'lib/Expr')
-rw-r--r--lib/Expr/Parser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Expr/Parser.cpp b/lib/Expr/Parser.cpp
index 572b9572..479ff6c2 100644
--- a/lib/Expr/Parser.cpp
+++ b/lib/Expr/Parser.cpp
@@ -998,8 +998,11 @@ ExprResult ParserImpl::ParseParenExpr(TypeResult FIXME_UNUSED) {
   case 2:
     return ParseBinaryParenExpr(Name, ExprKind, IsFixed, ResTy);
   case 3:
-    if (ExprKind == Expr::Select)
+    if (ExprKind == Expr::Select) {
       return ParseSelectParenExpr(Name, ResTy);
+    } else {
+      assert(0 && "Invalid ternary expression kind.");
+    }
   default:
     assert(0 && "Invalid argument kind (number of args).");
     return ExprResult();