From: Zhongxing Xu Date: Tue, 13 Apr 2010 13:15:19 +0000 (+0000) Subject: Make all cases that we don't handle explicit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc9ad74a13e83303a3a5251f8bacbbca17341c17;p=clang 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 8206c506ff..88c4210856 100644 --- a/lib/Checker/GRExprEngine.cpp +++ b/lib/Checker/GRExprEngine.cpp @@ -583,6 +583,8 @@ void GRExprEngine::Visit(Stmt* S, ExplodedNode* Pred, ExplodedNodeSet& Dst) { } 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 @@ void GRExprEngine::Visit(Stmt* S, ExplodedNode* Pred, ExplodedNodeSet& Dst) { 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