OSDN Git Service

GlobalISel: don't leak super-entry BB when merging with IR-level one.
authorTim Northover <tnorthover@apple.com>
Fri, 27 Jan 2017 23:54:31 +0000 (23:54 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 27 Jan 2017 23:54:31 +0000 (23:54 +0000)
commitbf98c575dea7b00ed0fdb37118694e67670badff
tree1bc09241c93b9f8b620426bb4eb4270f515eae21
parent1ca1d278d16d1f544f8e931d4f319ff58b582aca
GlobalISel: don't leak super-entry BB when merging with IR-level one.

We have to delete the block manually or it leaks. That triggers failures in
-fsanitize=leak bots (unsurprisingly), which should be fixed by this patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293347 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/IRTranslator.cpp