[llvm] [Transforms] Debug values are not remapped when cloning. (PR #87747)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 25 07:39:15 PDT 2024
================
@@ -3648,6 +3648,33 @@ DIExpression *llvm::getExpressionForConstant(DIBuilder &DIB, const Constant &C,
return nullptr;
}
+void llvm::remapDebugVariable(ValueToValueMapTy &Mapping, Instruction *Inst) {
+ auto RemapDebugOperands = [&Mapping](auto *DV, auto Set) {
+ for (auto *Op : Set)
+ if (auto *InstOp = Op) {
----------------
OCHyams wrote:
You still have the `if` statements, but they're not needed either. Please can you remove those?
https://github.com/llvm/llvm-project/pull/87747
More information about the llvm-commits
mailing list