diff options
author | John McCall <rjmccall@apple.com> | 2010-11-13 09:02:35 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-11-13 09:02:35 +0000 |
commit | 2bb5d00fcf71a7b4d478d478be778fff0494aff6 (patch) | |
tree | 6531cfddf6e5a68ed2c668aeb48fff2a03039995 /lib/AST/ExprConstant.cpp | |
parent | cf33b24441798f538fb5ab089edbba2ac3ba819c (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/AST/ExprConstant.cpp')
-rw-r--r-- | lib/AST/ExprConstant.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index dfeb32df3d..172a811bee 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -2165,6 +2165,8 @@ bool ComplexExprEvaluator::VisitCastExpr(CastExpr *E) { QualType EltType = E->getType()->getAs<ComplexType>()->getElementType(); QualType SubType = SubExpr->getType(); + // TODO: just trust CastKind + if (SubType->isRealFloatingType()) { APFloat &Real = Result.FloatReal; if (!EvaluateFloat(SubExpr, Real, Info)) |