OSDN Git Service

CodeGen: Handle missed case of block removal during BlockPlacement.
authorKyle Butt <kyle+llvm@iteratee.net>
Thu, 27 Oct 2016 21:37:20 +0000 (21:37 +0000)
committerKyle Butt <kyle+llvm@iteratee.net>
Thu, 27 Oct 2016 21:37:20 +0000 (21:37 +0000)
commitbf977933f414635889cf63c3757b37abfde0b7f8
tree4bfae6167a1723e2029d086acc54021304a462c9
parent428b70f50ea06da11be107557b4ea963fdf52a36
CodeGen: Handle missed case of block removal during BlockPlacement.

There is a use after free bug in the existing code. Loop layout selects
a preferred exit block, and then lays out the loop. If this block is
removed during layout, it needs to be invalidated to prevent a use after
free.

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