]> granicus.if.org Git - clang/commit
[leaks] Re-shuffle code such that we don't create a basic block for
authorChandler Carruth <chandlerc@gmail.com>
Sat, 3 May 2014 09:16:57 +0000 (09:16 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 3 May 2014 09:16:57 +0000 (09:16 +0000)
commit5baeb1d06e5d0f15c9e529838aa98e46f1e23efa
tree6d043bd6be8bf74838994a31e6222eadadd0eb95
parent589e7ecc89ab442e83703fa572ef046946c01df1
[leaks] Re-shuffle code such that we don't create a basic block for
initializing an array unless we need it. Specifically, position the
creation of a new basic block after we've checked all of the cases that
bypass the need for it.

Fixes another leak in test/CodeGen* found by LSan.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207900 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprCXX.cpp