[cfe-commits] r160485 - /cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h
Richard Smith
richard-llvm at metafoo.co.uk
Wed Jul 18 18:53:27 PDT 2012
Author: rsmith
Date: Wed Jul 18 20:53:26 2012
New Revision: 160485
URL: http://llvm.org/viewvc/llvm-project?rev=160485&view=rev
Log:
Silence GCC warnings.
Modified:
cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h
Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h?rev=160485&r1=160484&r2=160485&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h Wed Jul 18 20:53:26 2012
@@ -732,7 +732,8 @@
return cast<CXXAllocatorCall>(this)->fn(); \
case CE_ObjCMessage: \
return cast<ObjCMethodCall>(this)->fn(); \
- }
+ } \
+ llvm_unreachable("unknown CallEvent kind");
#define DISPATCH_ARG(fn, arg) \
switch (getKind()) { \
@@ -752,7 +753,8 @@
return cast<CXXAllocatorCall>(this)->fn(arg); \
case CE_ObjCMessage: \
return cast<ObjCMethodCall>(this)->fn(arg); \
- }
+ } \
+ llvm_unreachable("unknown CallEvent kind");
inline void CallEvent::getExtraInvalidatedRegions(RegionList &Regions) const {
DISPATCH_ARG(getExtraInvalidatedRegions, Regions);
More information about the cfe-commits
mailing list