mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
free instructions mark their operands as being heap nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5425 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fd373cb944
commit
3f24d7a2cd
@ -394,7 +394,8 @@ void GraphBuilder::visitCallInst(CallInst &CI) {
|
||||
|
||||
void GraphBuilder::visitFreeInst(FreeInst &FI) {
|
||||
// Mark that the node is written to...
|
||||
getValueDest(*FI.getOperand(0)).getNode()->NodeType |= DSNode::Modified;
|
||||
getValueDest(*FI.getOperand(0)).getNode()->NodeType
|
||||
|= DSNode::Modified | DSNode::HeapNode;
|
||||
}
|
||||
|
||||
/// Handle casts...
|
||||
|
Loading…
x
Reference in New Issue
Block a user