diff options
author | Stephen Tozer <stephen.tozer@sony.com> | 2025-08-15 17:39:51 +0100 |
---|---|---|
committer | Stephen Tozer <stephen.tozer@sony.com> | 2025-08-19 11:18:42 +0100 |
commit | 5cedb0148740e85f1b810e13db1c15ecd2388779 (patch) | |
tree | 974c511c1f952cf3c803d0170bbc95060eb2c747 /llvm/lib/Transforms/Utils/Debugify.cpp | |
parent | d0029b87d8dcc3db9f9eee0ddc4025cb9c33017b (diff) | |
download | llvm-5cedb0148740e85f1b810e13db1c15ecd2388779.zip llvm-5cedb0148740e85f1b810e13db1c15ecd2388779.tar.gz llvm-5cedb0148740e85f1b810e13db1c15ecd2388779.tar.bz2 |
[Debugify] Fix compile error in tracking coverage build
Forward-fixes a compile error in bc216b057d (#150212) in specific build
configurations, due to a missing const_cast.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Debugify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Debugify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Debugify.cpp b/llvm/lib/Transforms/Utils/Debugify.cpp index a0b7fdb..7063cde 100644 --- a/llvm/lib/Transforms/Utils/Debugify.cpp +++ b/llvm/lib/Transforms/Utils/Debugify.cpp @@ -712,7 +712,7 @@ bool llvm::checkDebugInfoMetadata(Module &M, // it is propagated to other instructions. for (auto &L : DILocsAfter) if (!L.second) - L.first->setDebugLoc(DebugLoc::getUnknown()); + const_cast<Instruction *>(L.first)->setDebugLoc(DebugLoc::getUnknown()); #endif bool ResultForVars = checkVars(DIVarsBefore, DIVarsAfter, NameOfWrappedPass, |