diff options
| author | Qinkun Bao <qinkun@google.com> | 2026-02-07 11:47:17 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-07 16:47:17 +0000 |
| commit | 2a74e02a9088bdc98e267df9529c740e4b1a88cd (patch) | |
| tree | 4961600778c50e5f9f9257333cfca57baa2b2800 /llvm/lib/CodeGen | |
| parent | b0cc73d00c1c55904658ecd3bc517cfdf867c469 (diff) | |
| download | llvm-2a74e02a9088bdc98e267df9529c740e4b1a88cd.tar.gz llvm-2a74e02a9088bdc98e267df9529c740e4b1a88cd.tar.bz2 llvm-2a74e02a9088bdc98e267df9529c740e4b1a88cd.zip | |
Revert "[SelectionDAG] Fix null pointer dereference in resolveDanglingDebugInfo" (#180352)
Reverts llvm/llvm-project#174341
Break https://lab.llvm.org/buildbot/#/builders/24/builds/17324
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 3beea7221fef..78b725f1455c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -1505,6 +1505,7 @@ void SelectionDAGBuilder::resolveDanglingDebugInfo(const Value *V, DanglingDebugInfoVector &DDIV = DanglingDbgInfoIt->second; for (auto &DDI : DDIV) { DebugLoc DL = DDI.getDebugLoc(); + unsigned ValSDNodeOrder = Val.getNode()->getIROrder(); unsigned DbgSDNodeOrder = DDI.getSDNodeOrder(); DILocalVariable *Variable = DDI.getVariable(); DIExpression *Expr = DDI.getExpression(); @@ -1518,7 +1519,6 @@ void SelectionDAGBuilder::resolveDanglingDebugInfo(const Value *V, // in the first place we should not be more successful here). Unless we // have some test case that prove this to be correct we should avoid // calling EmitFuncArgumentDbgValue here. - unsigned ValSDNodeOrder = Val.getNode()->getIROrder(); if (!EmitFuncArgumentDbgValue(V, Variable, Expr, DL, FuncArgumentDbgValueKind::Value, Val)) { LLVM_DEBUG(dbgs() << "Resolve dangling debug info for " |
