[llvm-commits] CVS: llvm/include/llvm/Analysis/DataStructure/DSSupport.h

Chris Lattner lattner at cs.uiuc.edu
Mon Mar 21 01:18:56 PST 2005



Changes in directory llvm/include/llvm/Analysis/DataStructure:

DSSupport.h updated: 1.37 -> 1.38
---
Log message:

If merging two calls like: foo(A) and bar(B, C), make sure the result has two
arguments, not one.


---
Diffs of the changes:  (+3 -0)

 DSSupport.h |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/include/llvm/Analysis/DataStructure/DSSupport.h
diff -u llvm/include/llvm/Analysis/DataStructure/DSSupport.h:1.37 llvm/include/llvm/Analysis/DataStructure/DSSupport.h:1.38
--- llvm/include/llvm/Analysis/DataStructure/DSSupport.h:1.37	Tue Mar 15 11:51:51 2005
+++ llvm/include/llvm/Analysis/DataStructure/DSSupport.h	Mon Mar 21 03:18:39 2005
@@ -292,6 +292,9 @@
 
     for (unsigned a = 0; a != MinArgs; ++a)
       getPtrArg(a).mergeWith(CS.getPtrArg(a));
+
+    for (unsigned a = MinArgs, e = CS.getNumPtrArgs(); a != e; ++a)
+      CallArgs.push_back(CS.getPtrArg(a));
   }
 
   /// markReachableNodes - This method recursively traverses the specified






More information about the llvm-commits mailing list