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

Chris Lattner lattner at cs.uiuc.edu
Sat Apr 2 12:17:25 PST 2005



Changes in directory llvm/lib/Analysis/DataStructure:

TopDownClosure.cpp updated: 1.87 -> 1.88
---
Log message:

fix some VC compilation problems, thanks to Jeff C for pointing this out!


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

 TopDownClosure.cpp |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)


Index: llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
diff -u llvm/lib/Analysis/DataStructure/TopDownClosure.cpp:1.87 llvm/lib/Analysis/DataStructure/TopDownClosure.cpp:1.88
--- llvm/lib/Analysis/DataStructure/TopDownClosure.cpp:1.87	Sat Apr  2 14:02:41 2005
+++ llvm/lib/Analysis/DataStructure/TopDownClosure.cpp	Sat Apr  2 14:17:09 2005
@@ -172,11 +172,10 @@
   Visited.insert(&G);
   
   // Recursively traverse all of the callee graphs.
-  for (DSGraph::fc_iterator CI = G.fc_begin(), E = G.fc_end(); CI != E; ++CI) {
+  for (DSGraph::fc_iterator CI = G.fc_begin(), CE = G.fc_end(); CI != CE; ++CI){
     Instruction *CallI = CI->getCallSite().getInstruction();
-    BUDataStructures::callee_iterator I = 
-      BUInfo->callee_begin(CallI), E = BUInfo->callee_end(CallI);
-    for (; I != E; ++I)
+    for (BUDataStructures::callee_iterator I = BUInfo->callee_begin(CallI),
+           E = BUInfo->callee_end(CallI); I != E; ++I)
       ComputePostOrder(*I->second, Visited, PostOrder);
   }
 






More information about the llvm-commits mailing list