aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-10-24 22:25:55 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-10-24 22:25:55 +0000
commitb000459901bc1c5a55246da83550ad427ad4c4ff (patch)
treeac22838d80be19e49f8023e0d0af81624c62dbe7 /lib/CodeGen/CGExprConstant.cpp
parent3eafbb85d1d9d108f089fd2451ddb6932eaafef2 (diff)
Don't try to emit CK_LValueBitCast casts as constants. PR9558.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142863 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r--lib/CodeGen/CGExprConstant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp
index 3997866ea6..31e0f2c3b0 100644
--- a/lib/CodeGen/CGExprConstant.cpp
+++ b/lib/CodeGen/CGExprConstant.cpp
@@ -573,7 +573,6 @@ public:
case CK_CPointerToObjCPointerCast:
case CK_BlockPointerToObjCPointerCast:
case CK_AnyPointerToBlockPointerCast:
- case CK_LValueBitCast:
case CK_BitCast:
if (C->getType() == destType) return C;
return llvm::ConstantExpr::getBitCast(C, destType);
@@ -589,6 +588,7 @@ public:
case CK_ARCConsumeObject:
case CK_ARCReclaimReturnedObject:
case CK_ARCExtendBlockObject:
+ case CK_LValueBitCast:
return 0;
// These might need to be supported for constexpr.