aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGExprComplex.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
commitc5e62b47afd4c8c123f6d601bb366f05fff6fb28 (patch)
tree88d58dbb09f95c6a839e90348d7381f84d55a660 /clang/lib/CodeGen/CGExprComplex.cpp
parentd005ac937e4c08e0c607ddc42708f8bf2064c243 (diff)
downloadllvm-c5e62b47afd4c8c123f6d601bb366f05fff6fb28.zip
llvm-c5e62b47afd4c8c123f6d601bb366f05fff6fb28.tar.gz
llvm-c5e62b47afd4c8c123f6d601bb366f05fff6fb28.tar.bz2
Introduce five new cast kinds for various conversions into and
between complex types. llvm-svn: 118994
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprComplex.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp
index 517a8da..637441f 100644
--- a/clang/lib/CodeGen/CGExprComplex.cpp
+++ b/clang/lib/CodeGen/CGExprComplex.cpp
@@ -350,6 +350,8 @@ ComplexPairTy ComplexExprEmitter::EmitComplexToComplexCast(ComplexPairTy Val,
ComplexPairTy ComplexExprEmitter::EmitCast(CastExpr::CastKind CK, Expr *Op,
QualType DestTy) {
+ // FIXME: this should be based off of the CastKind.
+
// Two cases here: cast from (complex to complex) and (scalar to complex).
if (Op->getType()->isAnyComplexType())
return EmitComplexToComplexCast(Visit(Op), Op->getType(), DestTy);