[llvm] Revert "Revert "[SelectionDAG] Fix null pointer dereference in resolveDanglingDebugInfo"" (PR #180368)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 15 02:11:08 PST 2026
================
@@ -1519,6 +1518,7 @@ 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();
----------------
natanelh-mobileye wrote:
```suggestion
unsigned ValSDNodeOrder = Val->getIROrder();
```
Please see if this applies here? SDValue has operator* to SDNode
https://github.com/llvm/llvm-project/pull/180368
More information about the llvm-commits
mailing list