[cfe-commits] r72653 - /cfe/trunk/lib/CodeGen/CGExprComplex.cpp
Anders Carlsson
andersca at mac.com
Sat May 30 17:12:05 PDT 2009
Author: andersca
Date: Sat May 30 19:12:05 2009
New Revision: 72653
URL: http://llvm.org/viewvc/llvm-project?rev=72653&view=rev
Log:
Implement VisitCXXExprWithTemporaries for complex expressions.
Modified:
cfe/trunk/lib/CodeGen/CGExprComplex.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprComplex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprComplex.cpp?rev=72653&r1=72652&r2=72653&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprComplex.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprComplex.cpp Sat May 30 19:12:05 2009
@@ -156,6 +156,9 @@
ComplexPairTy VisitCXXDefaultArgExpr(CXXDefaultArgExpr *DAE) {
return Visit(DAE->getExpr());
}
+ ComplexPairTy VisitCXXExprWithTemporaries(CXXExprWithTemporaries *E) {
+ return CGF.EmitCXXExprWithTemporaries(E).getComplexVal();
+ }
ComplexPairTy VisitCXXZeroInitValueExpr(CXXZeroInitValueExpr *E) {
assert(E->getType()->isAnyComplexType() && "Expected complex type!");
QualType Elem = E->getType()->getAsComplexType()->getElementType();
More information about the cfe-commits
mailing list