]> granicus.if.org Git - clang/commit
Don't zero-initialize default-initialized local variables that have
authorDouglas Gregor <dgregor@apple.com>
Fri, 1 Jul 2011 21:08:19 +0000 (21:08 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 1 Jul 2011 21:08:19 +0000 (21:08 +0000)
commitbcc3e660a1fdc19722157ef3e2f133418856ca3d
tree06c41ab25f97aa8ce03de107727768041fc7f6c4
parent31fd2b7881efc6b7b1e466823c10c64ba5ddffe3
Don't zero-initialize default-initialized local variables that have
trivial default constructors. This generated-code regression was
caused by r131796, which had simplified the handling of default
initialization in Sema. Fixes <rdar://problem/9694300>.

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