aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/Local.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/DataStructure/Local.cpp')
-rw-r--r--lib/Analysis/DataStructure/Local.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp
index 23b9bea4eb..f40080a913 100644
--- a/lib/Analysis/DataStructure/Local.cpp
+++ b/lib/Analysis/DataStructure/Local.cpp
@@ -393,11 +393,8 @@ void GraphBuilder::visitCallInst(CallInst &CI) {
}
void GraphBuilder::visitFreeInst(FreeInst &FI) {
- DSNodeHandle Dest = getValueDest(*FI.getOperand(0));
- if (Dest.getNode() == 0) return;
-
// Mark that the node is written to...
- Dest.getNode()->NodeType |= DSNode::Modified;
+ getValueDest(*FI.getOperand(0)).getNode()->NodeType |= DSNode::Modified;
}
/// Handle casts...