diff options
| author | Orlando Cazalet-Hyams <orlando.hyams@sony.com> | 2023-12-12 09:43:58 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-12 09:43:58 +0000 |
| commit | 2d9d9a1a556a5f8845a7a9e19dc52346b825989e (patch) | |
| tree | 7105430ab21036ec01c93adedf32b78047b72cab /llvm/lib/Transforms/Utils/Local.cpp | |
| parent | 6111f5c5925cb40357e2a972ebae4294731c307f (diff) | |
| download | llvm-2d9d9a1a556a5f8845a7a9e19dc52346b825989e.zip llvm-2d9d9a1a556a5f8845a7a9e19dc52346b825989e.tar.gz llvm-2d9d9a1a556a5f8845a7a9e19dc52346b825989e.tar.bz2 | |
[NFC] Change FindDbgDeclareUsers interface to match findDbgUsers/values (#73498)
This simplifies an upcoming patch to support the RemoveDIs project (tracking
variable locations without using intrinsics).
Next in this series is #73500.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 51f39e0..c19a8d1 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -2103,7 +2103,8 @@ void llvm::insertDebugValuesForPHIs(BasicBlock *BB, bool llvm::replaceDbgDeclare(Value *Address, Value *NewAddress, DIBuilder &Builder, uint8_t DIExprFlags, int Offset) { - auto DbgDeclares = FindDbgDeclareUses(Address); + SmallVector<DbgDeclareInst *, 1> DbgDeclares; + findDbgDeclares(DbgDeclares, Address); for (DbgVariableIntrinsic *DII : DbgDeclares) { const DebugLoc &Loc = DII->getDebugLoc(); auto *DIVar = DII->getVariable(); |
