diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-22 23:34:26 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-22 23:34:26 +0000 |
commit | 74f4dedefb1cd19ecf3df5c65d6b6b36b0ec34f5 (patch) | |
tree | aa7a65ff4372358ecdf9af7eea687ea32ee556f9 /docs/GarbageCollection.html | |
parent | 0adede059ed76940700195342bb5b02c79e58516 (diff) |
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
Diffstat (limited to 'docs/GarbageCollection.html')
-rw-r--r-- | docs/GarbageCollection.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/GarbageCollection.html b/docs/GarbageCollection.html index c9324859ba..0e97f0234a 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: |