[LLVMdev] Bug in LowerIntrinsics::PerformDefaultLowering ?

Yiannis Tsiouris gtsiour at softlab.ntua.gr
Thu Oct 18 04:50:18 PDT 2012


I noticed that in line 288-289 of lib/CodeGen/GCStrategy.cpp there is a

> for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
>   for (BasicBlock::iterator II = BB->begin(), E = BB->end();
>                                                     II != E;) {

E is used both for F.end() and for BB->end(). Is this intended?


Yiannis Tsiouris
Ph.D. student,
Software Engineering Laboratory,
National Technical University of Athens
WWW: http://www.softlab.ntua.gr/~gtsiour

More information about the llvm-dev mailing list