diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-10-20 22:12:06 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-10-20 22:12:06 +0000 |
| commit | faa756ecee9eb76aca8551aefd068c64e7e0c544 (patch) | |
| tree | eb51cdb4eb329014deecf977573720e122ecf20a /llvm/lib/Analysis/DataStructure/Local.cpp | |
| parent | 3af17ce2cf727c9820982b987b289542b1d6aa4a (diff) | |
| download | bcm5719-llvm-faa756ecee9eb76aca8551aefd068c64e7e0c544.tar.gz bcm5719-llvm-faa756ecee9eb76aca8551aefd068c64e7e0c544.zip | |
Avoid extra copy
llvm-svn: 4239
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/Local.cpp')
| -rw-r--r-- | llvm/lib/Analysis/DataStructure/Local.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp index 037e36197c8..7a749a1a795 100644 --- a/llvm/lib/Analysis/DataStructure/Local.cpp +++ b/llvm/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... |

