From 74f4dedefb1cd19ecf3df5c65d6b6b36b0ec34f5 Mon Sep 17 00:00:00 2001 From: Gordon Henriksen Date: Sat, 22 Dec 2007 23:34:26 +0000 Subject: [PATCH] Undo a wrong bit in that last patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45327 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/GarbageCollection.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/GarbageCollection.html b/docs/GarbageCollection.html index c9324859ba9..0e97f0234a5 100644 --- a/docs/GarbageCollection.html +++ b/docs/GarbageCollection.html @@ -1094,8 +1094,8 @@ bool MyCollector::performCustomLowering(Function &F) { bool MadeChange = false; for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) - for (BasicBlock::iterator II = BB->begin(), E = BB->end(); II != E; ++II) - if (IntrinsicInst *CI = dyn_cast<IntrinsicInst>(II)) + for (BasicBlock::iterator II = BB->begin(), E = BB->end(); II != E; ) + if (IntrinsicInst *CI = dyn_cast<IntrinsicInst>(II++)) if (Function *F = CI->getCalledFunction()) switch (F->getIntrinsicID()) { case Intrinsic::gcwrite: