]> granicus.if.org Git - clang/commit
Rewrite ComplexExprEvaluator::VisitCastExpr to use cast kinds, and fix
authorJohn McCall <rjmccall@apple.com>
Tue, 14 Dec 2010 17:51:41 +0000 (17:51 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 14 Dec 2010 17:51:41 +0000 (17:51 +0000)
commit8786da77984e81d48e0e1b2bd339809b1efc19f3
tree82374c5bd714ba2242bf13c7052d8f8d4286e363
parented37836bbbf023c4b6015128b131e1238398c7df
Rewrite ComplexExprEvaluator::VisitCastExpr to use cast kinds, and fix
the basic casting logic to insert intermediate casts and preserve the
exact complex-cast design.  Fixes a crash in the test suite.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121776 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
lib/Sema/SemaExpr.cpp