summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/WinEHPrepare.cpp
diff options
context:
space:
mode:
authorHsiangkai Wang <hsiangkai@gmail.com>2018-09-02 15:57:22 +0000
committerHsiangkai Wang <hsiangkai@gmail.com>2018-09-02 15:57:22 +0000
commit1368434b4973918b04b406633ce28d4e41481e8d (patch)
tree57d73c2a3d16cb52999f94d958dc0701683caad9 /llvm/lib/CodeGen/WinEHPrepare.cpp
parentca36eb4e33e487d8ae0e77fd38218a73c8656433 (diff)
downloadbcm5719-llvm-1368434b4973918b04b406633ce28d4e41481e8d.tar.gz
bcm5719-llvm-1368434b4973918b04b406633ce28d4e41481e8d.zip
[DebugInfo] Fix bug in LiveDebugVariables.
In lib/CodeGen/LiveDebugVariables.cpp, it uses std::prev(MBBI) to get DebugValue's SlotIndex. However, the previous instruction may be also a debug instruction. It could not use a debug instruction to query SlotIndex in mi2iMap. Scan all debug instructions and use the first debug instruction to query SlotIndex for following debug instructions. Only handle DBG_VALUE in handleDebugValue(). Differential Revision: https://reviews.llvm.org/D50621 llvm-svn: 341289
Diffstat (limited to 'llvm/lib/CodeGen/WinEHPrepare.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud