[llvm] 6b62ca9 - [NFC][SelectionDAG] Fix debug prints in salvageUnresolvedDbgValue
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 8 04:11:09 PDT 2022
Author: OCHyams
Date: 2022-07-08T12:09:30+01:00
New Revision: 6b62ca904340f9684c3453161cff95981f870561
URL: https://github.com/llvm/llvm-project/commit/6b62ca904340f9684c3453161cff95981f870561
DIFF: https://github.com/llvm/llvm-project/commit/6b62ca904340f9684c3453161cff95981f870561.diff
LOG: [NFC][SelectionDAG] Fix debug prints in salvageUnresolvedDbgValue
The prints are printing pointer values - fix by dereferencing the pointers.
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 7fc712a969272..715992c212edd 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -1309,7 +1309,7 @@ void SelectionDAGBuilder::salvageUnresolvedDbgValue(DanglingDebugInfo &DDI) {
if (handleDebugValue(V, Var, Expr, DL, InstDL, SDOrder,
/*IsVariadic=*/false)) {
LLVM_DEBUG(dbgs() << "Salvaged debug location info for:\n "
- << DDI.getDI() << "\nBy stripping back to:\n " << V);
+ << *DDI.getDI() << "\nBy stripping back to:\n " << *V);
return;
}
}
@@ -1321,7 +1321,7 @@ void SelectionDAGBuilder::salvageUnresolvedDbgValue(DanglingDebugInfo &DDI) {
auto SDV = DAG.getConstantDbgValue(Var, Expr, Undef, DL, SDNodeOrder);
DAG.AddDbgValue(SDV, false);
- LLVM_DEBUG(dbgs() << "Dropping debug value info for:\n " << DDI.getDI()
+ LLVM_DEBUG(dbgs() << "Dropping debug value info for:\n " << *DDI.getDI()
<< "\n");
LLVM_DEBUG(dbgs() << " Last seen at:\n " << *DDI.getDI()->getOperand(0)
<< "\n");
More information about the llvm-commits
mailing list