From 98034fa4079fecd7e506d3890412158dd7ae5711 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 23 Jan 2003 21:31:16 +0000 Subject: [PATCH] Slight efficiency improvement llvm-svn: 5418 --- llvm/lib/Analysis/DataStructure/Local.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp index 23b9bea4ebdf..f40080a91391 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...