diff options
author | Orlando Cazalet-Hyams <orlando.hyams@sony.com> | 2023-12-13 12:34:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 12:34:37 +0000 |
commit | fd8fa31c55a3413f643443ecf3301441428ce513 (patch) | |
tree | afd74c1046634c439a27a3f353323951a0f89a8c /llvm/lib/IR/BasicBlock.cpp | |
parent | e418988175c2dee9d7c7976cf822b41aaf321c26 (diff) | |
download | llvm-fd8fa31c55a3413f643443ecf3301441428ce513.zip llvm-fd8fa31c55a3413f643443ecf3301441428ce513.tar.gz llvm-fd8fa31c55a3413f643443ecf3301441428ce513.tar.bz2 |
[RemoveDIs] Update Coroutine passes to handle DPValues (#74480)
As part of the RemoveDIs project, transitioning to non-instruction debug
info, all debug intrinsic handling code needs to be duplicated to handle
DPValues.
--try-experimental-debuginfo-iterators enables the new debug mode in
tests if the CMake option has been enabled.
`getInsertPtAfterFramePtr` now returns an iterator so we don't lose
debug-info-communicating bits.
---
Depends on #73500, #74090, #74091.
Diffstat (limited to 'llvm/lib/IR/BasicBlock.cpp')
-rw-r--r-- | llvm/lib/IR/BasicBlock.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp index 8e77674..03b74b0 100644 --- a/llvm/lib/IR/BasicBlock.cpp +++ b/llvm/lib/IR/BasicBlock.cpp @@ -1091,6 +1091,8 @@ void BasicBlock::insertDPValueBefore(DPValue *DPV, // shouldn't be generated at times when there's no terminator. assert(Where != end()); assert(Where->getParent() == this); + if (!Where->DbgMarker) + createMarker(Where); bool InsertAtHead = Where.getHeadBit(); Where->DbgMarker->insertDPValue(DPV, InsertAtHead); } |