[cfe-commits] r128297 - /cfe/trunk/lib/AST/ExprConstant.cpp

Eli Friedman eli.friedman at gmail.com
Fri Mar 25 12:07:11 PDT 2011


Author: efriedma
Date: Fri Mar 25 14:07:11 2011
New Revision: 128297

URL: http://llvm.org/viewvc/llvm-project?rev=128297&view=rev
Log:
Silly mistake in integer constant folding cleanup.


Modified:
    cfe/trunk/lib/AST/ExprConstant.cpp

Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=128297&r1=128296&r2=128297&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Fri Mar 25 14:07:11 2011
@@ -1764,7 +1764,6 @@
   QualType SrcType = SubExpr->getType();
 
   switch (E->getCastKind()) {
-  case CK_BitCast:
   case CK_BaseToDerived:
   case CK_DerivedToBase:
   case CK_UncheckedDerivedToBase:
@@ -1794,6 +1793,7 @@
   case CK_IntegralComplexToFloatingComplex:
     llvm_unreachable("invalid cast kind for integral value");
 
+  case CK_BitCast:
   case CK_Dependent:
   case CK_GetObjCProperty:
   case CK_LValueBitCast:





More information about the cfe-commits mailing list