aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/Local.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-20 22:12:06 +0000
committerChris Lattner <sabre@nondot.org>2002-10-20 22:12:06 +0000
commit0c8d73b74c04ef03c6ba2fb21ff48f9c23daf643 (patch)
tree9779cf57d43918606f4cc5811d9b303dde999aaa /lib/Analysis/DataStructure/Local.cpp
parent9de906c72a3c9914625d9c3c1ebb4a86025ae8e9 (diff)
Avoid extra copy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/Local.cpp')
-rw-r--r--lib/Analysis/DataStructure/Local.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp
index 037e36197c..7a749a1a79 100644
--- a/lib/Analysis/DataStructure/Local.cpp
+++ b/lib/Analysis/DataStructure/Local.cpp
@@ -216,7 +216,6 @@ DSNodeHandle &GraphBuilder::getValueDest(Value &V) {
}
-
/// getLink - This method is used to return the specified link in the
/// specified node if one exists. If a link does not already exist (it's
/// null), then we create a new node, link it, then return it. We must
@@ -356,7 +355,7 @@ void GraphBuilder::visitReturnInst(ReturnInst &RI) {
void GraphBuilder::visitCallInst(CallInst &CI) {
// Add a new function call entry...
- FunctionCalls.push_back(DSCallSite(CI));
+ FunctionCalls.push_back(CI);
DSCallSite &Args = FunctionCalls.back();
// Set up the return value...