[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.

As the test case involves a CFG transformation, move it to the correct location.

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

llvm-svn: 353682
This commit is contained in:
Carlos Alberto Enciso 2019-02-11 10:16:38 +00:00
parent 6aaa8bfef8
commit e848d426a7
1 changed files with 0 additions and 0 deletions