diff options
author | Harald van Dijk <harald.vandijk@codeplay.com> | 2024-05-08 17:02:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 17:02:25 +0100 |
commit | a6171900a446c85c3b53a4a9deba16b746f9f77f (patch) | |
tree | a4c708cfd36f3439d840b6d23d7bb8b4a1fad7d8 /llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | |
parent | 2ceb1291ef3ddb87cb58030cd61d965f4030338f (diff) | |
download | llvm-a6171900a446c85c3b53a4a9deba16b746f9f77f.zip llvm-a6171900a446c85c3b53a4a9deba16b746f9f77f.tar.gz llvm-a6171900a446c85c3b53a4a9deba16b746f9f77f.tar.bz2 |
[RemoveDIs] Change remapDbgVariableRecord to remapDbgRecord (#91456)
We need to remap any DbgRecord, not just DbgVariableRecords.
This is the followup to #91447.
Co-authored-by: PietroGhg <pietro.ghiglio@codeplay.com>
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp index d763b1e..002ed38 100644 --- a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp +++ b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp @@ -1261,9 +1261,8 @@ static BasicBlock *buildClonedLoopBlocks( Module *M = ClonedPH->getParent()->getParent(); for (auto *ClonedBB : NewBlocks) for (Instruction &I : *ClonedBB) { - RemapDbgVariableRecordRange(M, I.getDbgRecordRange(), VMap, - RF_NoModuleLevelChanges | - RF_IgnoreMissingLocals); + RemapDbgRecordRange(M, I.getDbgRecordRange(), VMap, + RF_NoModuleLevelChanges | RF_IgnoreMissingLocals); RemapInstruction(&I, VMap, RF_NoModuleLevelChanges | RF_IgnoreMissingLocals); if (auto *II = dyn_cast<AssumeInst>(&I)) |