aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Transforms/Utils/CloningTest.cpp
diff options
context:
space:
mode:
authorHarald van Dijk <harald.vandijk@codeplay.com>2025-02-12 17:50:39 +0000
committerHarald van Dijk <harald.vandijk@codeplay.com>2025-02-12 17:50:39 +0000
commit23209eb1d9df57ca3419f5abc6b2edcdc0d1dead (patch)
tree1ded1a640376a5bd69c069755de5365534129a82 /llvm/unittests/Transforms/Utils/CloningTest.cpp
parent3ec9f7494b31f2fe51d5ed0e07adcf4b7199def6 (diff)
downloadllvm-23209eb1d9df57ca3419f5abc6b2edcdc0d1dead.zip
llvm-23209eb1d9df57ca3419f5abc6b2edcdc0d1dead.tar.gz
llvm-23209eb1d9df57ca3419f5abc6b2edcdc0d1dead.tar.bz2
Revert "[DebugInfo] Update DIBuilder insertion to take InsertPosition (#126059)"
This reverts commit 3ec9f7494b31f2fe51d5ed0e07adcf4b7199def6.
Diffstat (limited to 'llvm/unittests/Transforms/Utils/CloningTest.cpp')
-rw-r--r--llvm/unittests/Transforms/Utils/CloningTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/unittests/Transforms/Utils/CloningTest.cpp b/llvm/unittests/Transforms/Utils/CloningTest.cpp
index 03769ff..f2b73c2 100644
--- a/llvm/unittests/Transforms/Utils/CloningTest.cpp
+++ b/llvm/unittests/Transforms/Utils/CloningTest.cpp
@@ -508,7 +508,7 @@ protected:
auto *Variable =
DBuilder.createAutoVariable(Subprogram, "x", File, 5, IntType, true);
auto *DL = DILocation::get(Subprogram->getContext(), 5, 0, Subprogram);
- DBuilder.insertDeclare(Alloca, Variable, E, DL, Store->getIterator());
+ DBuilder.insertDeclare(Alloca, Variable, E, DL, Store);
DBuilder.insertDbgValueIntrinsic(AllocaContent, Variable, E, DL, Entry);
// Also create an inlined variable.
// Create a distinct struct type that we should not duplicate during
@@ -528,8 +528,7 @@ protected:
Subprogram->getContext(), 9, 4, Scope,
DILocation::get(Subprogram->getContext(), 5, 2, Subprogram));
IBuilder.SetCurrentDebugLocation(InlinedDL);
- DBuilder.insertDeclare(Alloca, InlinedVar, E, InlinedDL,
- Store->getIterator());
+ DBuilder.insertDeclare(Alloca, InlinedVar, E, InlinedDL, Store);
IBuilder.CreateStore(IBuilder.getInt32(2), Alloca);
// Finalize the debug info.
DBuilder.finalize();