forked from OSchip/llvm-project
Implement VisitCXXExprWithTemporaries for complex expressions.
llvm-svn: 72653
This commit is contained in:
parent
2262b307aa
commit
c0092ad333
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue