]> granicus.if.org Git - clang/commit
PR12848: When emitting a local variable declared 'constexpr', always initialize it...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 2 Jun 2013 00:09:52 +0000 (00:09 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 2 Jun 2013 00:09:52 +0000 (00:09 +0000)
commite67ca5803ac9e39cc31ed1ad9576e1626c8141eb
tree23c41f886e675e2f4ec708789544fee113084129
parent0348be0c78781c5ddb8c271976812705410c731a
PR12848: When emitting a local variable declared 'constexpr', always initialize it with a store or a memcpy, not by emitting the initializer expression. This is not required for correctness, but more closely aligns with people's expectations, and is cheap (since we've already evaluated the initializer).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183082 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDecl.cpp
test/CodeGenCXX/blocks-cxx11.cpp
test/CodeGenCXX/const-init-cxx11.cpp