[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Oct 20 17:13:01 PDT 2002


Changes in directory llvm/lib/Analysis/DataStructure:

Local.cpp updated: 1.18 -> 1.19

---
Log message:

Avoid extra copy


---
Diffs of the changes:

Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.18 llvm/lib/Analysis/DataStructure/Local.cpp:1.19
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.18	Sun Oct 20 16:41:02 2002
+++ llvm/lib/Analysis/DataStructure/Local.cpp	Sun Oct 20 17:12:06 2002
@@ -216,7 +216,6 @@
 }
 
 
-
 /// 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::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...





More information about the llvm-commits mailing list