diff options
author | Chris Lattner <sabre@nondot.org> | 2003-01-23 21:31:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-01-23 21:31:16 +0000 |
commit | 787645839a3730a5c225b06e46574f957b37635d (patch) | |
tree | 3642fd1f6252e23c60a5b238a791c7d26a0df9f2 /lib/Analysis/DataStructure/Local.cpp | |
parent | c2b5dcba5429b3c4328c3141fbe20af12e961a21 (diff) |
Slight efficiency improvement
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5418 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/Local.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/Local.cpp | 5 |
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... |