Undo a wrong bit in that last patch.

llvm-svn: 45327
This commit is contained in:
Gordon Henriksen 2007-12-22 23:34:26 +00:00
parent 8790a22a30
commit e09a4f8515
1 changed files with 2 additions and 2 deletions

View File

@ -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: