commit | 0e107c82ea547e535612d07328c0b9a23cbf73cf | [log] [tgz] |
---|---|---|
author | Adrian Prantl <aprantl@apple.com> | Tue Jun 20 21:08:52 2017 +0000 |
committer | Leo Li <aoli@google.com> | Wed Jun 21 14:23:12 2017 -0700 |
tree | ed708f0f85353fb940d45ade4c22dd3e0b9b9006 | |
parent | a3721811c6ea24f74acd446d1d485e16f78585dc [diff] |
Fix a crash in DwarfDebug::validThroughout. The instruction it falls over on is an IMPLICT_DEF that also happens to be the only instruction in its lexical scope. That LexicalScope has never been created because its range is empty. This patch skips over all meta-instructions instead of just DBG_VALUEs. Thanks to David Blaikie for providing a testcase! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305853 91177308-0d34-0410-b5e6-96231b3b80d8