Undo a wrong bit in that last patch.
authorGordon Henriksen <gordonhenriksen@mac.com>
Sat, 22 Dec 2007 23:34:26 +0000 (23:34 +0000)
committerGordon Henriksen <gordonhenriksen@mac.com>
Sat, 22 Dec 2007 23:34:26 +0000 (23:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45327 91177308-0d34-0410-b5e6-96231b3b80d8

docs/GarbageCollection.html

index c932485..0e97f02 100644 (file)
@@ -1094,8 +1094,8 @@ bool MyCollector::performCustomLowering(Function &amp;F) {
   bool MadeChange = false;
   
   for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB)
-    for (BasicBlock::iterator II = BB-&gt;begin(), E = BB-&gt;end(); II != E; ++II)
-      if (IntrinsicInst *CI = dyn_cast&lt;IntrinsicInst&gt;(II))
+    for (BasicBlock::iterator II = BB-&gt;begin(), E = BB-&gt;end(); II != E; )
+      if (IntrinsicInst *CI = dyn_cast&lt;IntrinsicInst&gt;(II++))
         if (Function *F = CI-&gt;getCalledFunction())
           switch (F-&gt;getIntrinsicID()) {
           case Intrinsic::gcwrite: