mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
Fix a use-of-dangling-pointer bug, from the introduction of SrcValue's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2f4eca30d1
commit
c534395cb2
@ -215,6 +215,11 @@ void SelectionDAG::DeleteNodeIfDead(SDNode *N, void *NodeSet) {
|
||||
case ISD::VALUETYPE:
|
||||
ValueTypeNodes[cast<VTSDNode>(N)->getVT()] = 0;
|
||||
break;
|
||||
case ISD::SRCVALUE: {
|
||||
SrcValueSDNode *SVN = cast<SrcValueSDNode>(N);
|
||||
ValueNodes.erase(std::make_pair(SVN->getValue(), SVN->getOffset()));
|
||||
break;
|
||||
}
|
||||
case ISD::LOAD:
|
||||
Loads.erase(std::make_pair(N->getOperand(1),
|
||||
std::make_pair(N->getOperand(0),
|
||||
|
Loading…
x
Reference in New Issue
Block a user