aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-31 00:09:15 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-31 00:09:15 +0000
commit3082463f4f387b725f4e4bf7d7b46269d445e4f5 (patch)
tree66c3c3c691ff3056527ea3bc0693a1797c17280b /lib/CodeGen/CGExprScalar.cpp
parentf0721fe438d7e40c168e5d664970e7830bc138fb (diff)
Call EmitCXXExprWithTemporaries.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72652 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--lib/CodeGen/CGExprScalar.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp
index 958aa9361c..e4d3ff5a2e 100644
--- a/lib/CodeGen/CGExprScalar.cpp
+++ b/lib/CodeGen/CGExprScalar.cpp
@@ -283,8 +283,7 @@ public:
}
Value *VisitCXXExprWithTemporaries(CXXExprWithTemporaries *E) {
- // FIXME: Do something with the temporaries!
- return Visit(E->getSubExpr());
+ return CGF.EmitCXXExprWithTemporaries(E).getScalarVal();
}
// Binary Operators.