]> granicus.if.org Git - llvm/commit
[DWARF] LLVM ERROR: Broken function found, while removing Debug Intrinsics.
authorCarlos Alberto Enciso <carlos.alberto.enciso@gmail.com>
Fri, 8 Feb 2019 10:57:26 +0000 (10:57 +0000)
committerCarlos Alberto Enciso <carlos.alberto.enciso@gmail.com>
Fri, 8 Feb 2019 10:57:26 +0000 (10:57 +0000)
commit2e390e6fde49dfa8c973a0889ccf62433a0b49df
tree67d68cf804a1512d9b5f59d1fee6bb0e72a09d7e
parent9737365327cb50722b04a3c2c36b8768e18140b0
[DWARF] LLVM ERROR: Broken function found, while removing Debug Intrinsics.

Check that when SimplifyCFG is flattening a 'br', all their debug intrinsic instructions are removed, including any dbg.label referencing a label associated with the basic blocks being removed.

Differential Revision: https://reviews.llvm.org/D57444

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353511 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/Local.h
lib/Transforms/Utils/Local.cpp
test/CodeGen/X86/bbi-23595.ll [new file with mode: 0644]