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);
case CK_ARCConsumeObject:
case CK_ARCReclaimReturnedObject:
case CK_ARCExtendBlockObject:
+ case CK_LValueBitCast:
return 0;
// These might need to be supported for constexpr.
double t0 = A::d;
double t1[] = { A::d, A::f };
}
+
+// We don't expect to fold this in the frontend, but make sure it doesn't crash.
+// CHECK: @PR9558 = global float 0.000000e+0
+float PR9558 = reinterpret_cast<const float&>("asd");