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

Chris Lattner lattner at cs.uiuc.edu
Mon Feb 10 12:18:01 PST 2003


Changes in directory llvm/lib/Analysis/DataStructure:

Steensgaard.cpp updated: 1.24 -> 1.25

---
Log message:

Fix problem breaking Fhourstones


---
Diffs of the changes:

Index: llvm/lib/Analysis/DataStructure/Steensgaard.cpp
diff -u llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.24 llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.25
--- llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.24	Sun Feb  9 18:14:57 2003
+++ llvm/lib/Analysis/DataStructure/Steensgaard.cpp	Mon Feb 10 12:16:19 2003
@@ -92,7 +92,8 @@
 
   // Loop over all pointer arguments, resolving them to their provided pointers
   unsigned PtrArgIdx = 0;
-  for (Function::aiterator AI = F->abegin(), AE = F->aend(); AI != AE; ++AI) {
+  for (Function::aiterator AI = F->abegin(), AE = F->aend();
+       AI != AE && PtrArgIdx < Call.getNumPtrArgs(); ++AI) {
     hash_map<Value*, DSNodeHandle>::iterator I = ValMap.find(AI);
     if (I != ValMap.end())    // If its a pointer argument...
       I->second.mergeWith(Call.getPtrArg(PtrArgIdx++));





More information about the llvm-commits mailing list