diff options
author | Anders Carlsson <andersca@mac.com> | 2009-05-31 00:12:05 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-05-31 00:12:05 +0000 |
commit | 4b76b4fa1a0225bb4113eb67c5dcdbe74a87ec6b (patch) | |
tree | acfd8ac1e6e60e217ba10f85d90e80c66b4240aa /lib/CodeGen | |
parent | 3082463f4f387b725f4e4bf7d7b46269d445e4f5 (diff) |
Implement VisitCXXExprWithTemporaries for complex expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72653 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGExprComplex.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprComplex.cpp b/lib/CodeGen/CGExprComplex.cpp index 6f8dc2c839..41fb725fdf 100644 --- a/lib/CodeGen/CGExprComplex.cpp +++ b/lib/CodeGen/CGExprComplex.cpp @@ -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(); |