]> granicus.if.org Git - clang/commitdiff
Silence another GCC warning.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 19 Jul 2012 03:08:07 +0000 (03:08 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 19 Jul 2012 03:08:07 +0000 (03:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160488 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/Calls.cpp

index 5c161ba27b90d806208670a65d895d0818bb0867..22fea3298d9bd4ca3d4080a7b088058ac7871946 100644 (file)
@@ -537,6 +537,7 @@ SourceRange ObjCMethodCall::getSourceRange() const {
   case OCM_Subscript:
     return getContainingPseudoObjectExpr()->getSourceRange();
   }
+  llvm_unreachable("unknown message kind");
 }
 
 typedef llvm::PointerIntPair<const PseudoObjectExpr *, 2> ObjCMessageDataTy;
@@ -592,4 +593,3 @@ ObjCMessageKind ObjCMethodCall::getMessageKind() const {
     return OCM_Message;
   return static_cast<ObjCMessageKind>(Info.getInt());
 }
-