]> granicus.if.org Git - llvm/commit
Ignore all duplicate frame index expression
authorBjorn Steinbrink <bsteinbr@gmail.com>
Tue, 10 Oct 2017 07:46:17 +0000 (07:46 +0000)
committerBjorn Steinbrink <bsteinbr@gmail.com>
Tue, 10 Oct 2017 07:46:17 +0000 (07:46 +0000)
commit4a53d4080de370a34376c4a2287fda3004d9e04c
tree25abeb8bd9450a851c082811b60e544631db9675
parentb59966146a66658bc0f5e80dc86b30db4fc4b0f2
Ignore all duplicate frame index expression

Some passes might duplicate calls to llvm.dbg.declare creating
duplicate frame index expression which currently trigger an assertion
which is meant to catch erroneous, overlapping fragment declarations.
But identical frame index expressions are just redundant and don't
actually conflict with each other, so we can be more lenient and just
ignore the duplicates.

Reviewers: aprantl, rnk

Subscribers: llvm-commits, JDevlieghere

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315279 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h