diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-07-19 01:53:26 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-07-19 01:53:26 +0000 |
commit | 7dfbfb1835198bf0cb4b0caaa5d9f3c6301f9920 (patch) | |
tree | a357605062a6c8b108819841ad963714ea63cd80 | |
parent | a1ec3db3a1ab7c37f1d7604bef777fe54711d8f0 (diff) |
Silence GCC warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160485 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h b/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h index e0ed3cdde0..d4068275ee 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h @@ -732,7 +732,8 @@ public: 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 @@ public: 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); |