[cfe-commits] r127783 - /cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Matt Beaumont-Gay
matthewbg at google.com
Wed Mar 16 17:46:34 PDT 2011
Author: matthewbg
Date: Wed Mar 16 19:46:34 2011
New Revision: 127783
URL: http://llvm.org/viewvc/llvm-project?rev=127783&view=rev
Log:
Politely inform GCC that we will never fall off the end of that switch.
Modified:
cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprConstant.cpp?rev=127783&r1=127782&r2=127783&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprConstant.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprConstant.cpp Wed Mar 16 19:46:34 2011
@@ -618,6 +618,7 @@
case CK_FloatingCast:
return llvm::ConstantExpr::getFPCast(C, destType);
}
+ llvm_unreachable("Invalid CastKind");
}
llvm::Constant *VisitCXXDefaultArgExpr(CXXDefaultArgExpr *DAE) {
More information about the cfe-commits
mailing list