]> granicus.if.org Git - clang/commit
[CodeGen] Do a more principled fix for PR231653, always use the inner type.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 9 Apr 2015 22:50:07 +0000 (22:50 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 9 Apr 2015 22:50:07 +0000 (22:50 +0000)
commitcb3b8b45b560f4f1e6bcdcacbfc459f1cb0f61ed
treeeee31dde4bfa692090cb7f85267fb88c196acf7f
parent922a03324caa3e9e1a626f0ac9d66d20d25bed5a
[CodeGen] Do a more principled fix for PR231653, always use the inner type.

We were still using the MaterializeTemporaryExpr's type to check if the
transform is legal. Always use the inner Expr type.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234543 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
test/CodeGenCXX/cxx0x-initializer-references.cpp
test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp