Implement VisitCXXExprWithTemporaries for complex expressions.

llvm-svn: 72653
This commit is contained in:
Anders Carlsson 2009-05-31 00:12:05 +00:00
parent 2262b307aa
commit c0092ad333
1 changed files with 3 additions and 0 deletions

View File

@ -156,6 +156,9 @@ public:
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();