From: Richard Smith Date: Thu, 19 Jul 2012 01:53:26 +0000 (+0000) Subject: Silence GCC warnings. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7dfbfb1835198bf0cb4b0caaa5d9f3c6301f9920;p=clang Silence GCC warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160485 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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);