[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)
commitf3e67de85aed2c3582755845d39474948c0cc63a
tree8992c1ad8c7ab7a30f323757812ab9275e97e52f
parent8f9a3f2d7eb7cdcea9e8e3eb7a4766397443b68e
[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.

llvm-svn: 234543
clang/lib/CodeGen/CGExpr.cpp
clang/test/CodeGenCXX/cxx0x-initializer-references.cpp
clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp