diff options
-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); |