summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Analysis/DataStructure/Local.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp
index 23b9bea4ebd..f40080a9139 100644
--- a/llvm/lib/Analysis/DataStructure/Local.cpp
+++ b/llvm/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...
OpenPOWER on IntegriCloud