From 7dfbfb1835198bf0cb4b0caaa5d9f3c6301f9920 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 19 Jul 2012 01:53:26 +0000 Subject: [PATCH] Silence GCC warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160485 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h | 6 ++++-- 1 file 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(this)->fn(); \ case CE_ObjCMessage: \ return cast(this)->fn(); \ - } + } \ + llvm_unreachable("unknown CallEvent kind"); #define DISPATCH_ARG(fn, arg) \ switch (getKind()) { \ @@ -752,7 +753,8 @@ public: return cast(this)->fn(arg); \ case CE_ObjCMessage: \ return cast(this)->fn(arg); \ - } + } \ + llvm_unreachable("unknown CallEvent kind"); inline void CallEvent::getExtraInvalidatedRegions(RegionList &Regions) const { DISPATCH_ARG(getExtraInvalidatedRegions, Regions); -- 2.50.1