From 3082463f4f387b725f4e4bf7d7b46269d445e4f5 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sun, 31 May 2009 00:09:15 +0000 Subject: Call EmitCXXExprWithTemporaries. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72652 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprScalar.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/CodeGen/CGExprScalar.cpp') 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. -- cgit v1.2.3