[cfe-commits] r101129 - /cfe/trunk/lib/Checker/GRExprEngine.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Tue Apr 13 06:15:20 PDT 2010
Author: zhongxingxu
Date: Tue Apr 13 08:15:19 2010
New Revision: 101129
URL: http://llvm.org/viewvc/llvm-project?rev=101129&view=rev
Log:
Make all cases that we don't handle explicit.
Modified:
cfe/trunk/lib/Checker/GRExprEngine.cpp
Modified: cfe/trunk/lib/Checker/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/GRExprEngine.cpp?rev=101129&r1=101128&r2=101129&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/GRExprEngine.cpp (original)
+++ cfe/trunk/lib/Checker/GRExprEngine.cpp Tue Apr 13 08:15:19 2010
@@ -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
More information about the cfe-commits
mailing list