Make all cases that we don't handle explicit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101129 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Checker/GRExprEngine.cpp b/lib/Checker/GRExprEngine.cpp
index 8206c50..88c4210 100644
--- a/lib/Checker/GRExprEngine.cpp
+++ b/lib/Checker/GRExprEngine.cpp
@@ -583,6 +583,8 @@
}
switch (S->getStmtClass()) {
+ default:
+ llvm_unreachable("Unhandled stmt class");
// C++ stuff we don't support yet.
case Stmt::CXXTypeidExprClass:
case Stmt::CXXBoolLiteralExprClass:
@@ -611,7 +613,16 @@
break;
}
- default:
+ case Stmt::AddrLabelExprClass:
+ case Stmt::IntegerLiteralClass:
+ case Stmt::CharacterLiteralClass:
+ case Stmt::FloatingLiteralClass:
+ case Stmt::ImplicitValueInitExprClass:
+ case Stmt::ObjCSuperExprClass:
+ case Stmt::ObjCStringLiteralClass:
+ case Stmt::ObjCSelectorExprClass:
+ case Stmt::ObjCImplicitSetterGetterRefExprClass:
+ case Stmt::PredefinedExprClass:
// Cases we intentionally have "default" handle:
// AddrLabelExpr, IntegerLiteral, CharacterLiteral