]> granicus.if.org Git - clang/commitdiff
Politely inform GCC that we will never fall off the end of that switch.
authorMatt Beaumont-Gay <matthewbg@google.com>
Thu, 17 Mar 2011 00:46:34 +0000 (00:46 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Thu, 17 Mar 2011 00:46:34 +0000 (00:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127783 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprConstant.cpp

index 445bca0ab748879f5b6c8c3a954fdccc44848846..a3c45360260d60940ab709c63598857cd6351c23 100644 (file)
@@ -618,6 +618,7 @@ public:
     case CK_FloatingCast:
       return llvm::ConstantExpr::getFPCast(C, destType);
     }
+    llvm_unreachable("Invalid CastKind");
   }
 
   llvm::Constant *VisitCXXDefaultArgExpr(CXXDefaultArgExpr *DAE) {