]> granicus.if.org Git - clang/commit
PR15884: In the 'taking the address of a temporary' extension, materialize the
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 1 May 2013 19:00:39 +0000 (19:00 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 1 May 2013 19:00:39 +0000 (19:00 +0000)
commita07a6c3e756d0a6a5baa2cad9d165f79f0fb1b42
tree86ae2534898f642795d144c01eb95e31b9b868eb
parent112344ab7f96cf482bce80530676712c282756d5
PR15884: In the 'taking the address of a temporary' extension, materialize the
temporary to an lvalue before taking its address. This removes a weird special
case from the AST representation, and allows the constant expression evaluator
to deal with it without (broken) hacks.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180866 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
lib/Sema/SemaExpr.cpp
test/SemaCXX/constant-expression-cxx11.cpp