]> granicus.if.org Git - clang/commit
Fix PR6648 by not creating a temporary with the type of a
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 21 Mar 2010 17:11:05 +0000 (17:11 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 21 Mar 2010 17:11:05 +0000 (17:11 +0000)
commit8682bdae7e3db4e5d7dd957754923bbdf75fc166
tree710530f72912add678d3cdbf9c2b0537793d0ff7
parent3e0e41c9bba167437072c47a140d51509ebeb73c
Fix PR6648 by not creating a temporary with the type of a
CXXExprWithTemporaries.

Not emitting the expression as an aggregate might be the right thing to do,
but is orthogonal. Emitting it as an scalar expression will still try to
create a temporary for the incomplete type of the CXXExprWithTemporaries and
fail.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99134 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprAgg.cpp
test/CodeGenCXX/temporaries.cpp