aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-11-13 09:02:35 +0000
committerJohn McCall <rjmccall@apple.com>2010-11-13 09:02:35 +0000
commit2bb5d00fcf71a7b4d478d478be778fff0494aff6 (patch)
tree6531cfddf6e5a68ed2c668aeb48fff2a03039995 /lib/CodeGen/CGExprScalar.cpp
parentcf33b24441798f538fb5ab089edbba2ac3ba819c (diff)
Introduce five new cast kinds for various conversions into and
between complex types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--lib/CodeGen/CGExprScalar.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp
index d07d20395d..5b419c02f8 100644
--- a/lib/CodeGen/CGExprScalar.cpp
+++ b/lib/CodeGen/CGExprScalar.cpp
@@ -1079,7 +1079,11 @@ Value *ScalarExprEmitter::EmitCastExpr(CastExpr *CE) {
return CGF.CGM.getCXXABI().EmitMemberPointerConversion(CGF, CE, Src);
}
-
+ case CK_FloatingRealToComplex:
+ case CK_FloatingComplexCast:
+ case CK_IntegralRealToComplex:
+ case CK_IntegralComplexCast:
+ case CK_IntegralToFloatingComplex:
case CK_ConstructorConversion:
assert(0 && "Should be unreachable!");
break;