forked from OSchip/llvm-project
Couple of code gen. fixes in ObjC's colection-statement. Hard
to track down, easy to fix. This is on going. llvm-svn: 61817
This commit is contained in:
parent
1f42c2e94d
commit
6e7ecc84c8
|
@ -505,6 +505,8 @@ void CodeGenFunction::EmitObjCForCollectionStmt(const ObjCForCollectionStmt &S)
|
|||
|
||||
llvm::BasicBlock *FetchMore = createBasicBlock("fetchmore");
|
||||
|
||||
Counter = Builder.CreateLoad(CounterPtr);
|
||||
Limit = Builder.CreateLoad(LimitPtr);
|
||||
llvm::Value *IsLess = Builder.CreateICmpULT(Counter, Limit, "isless");
|
||||
Builder.CreateCondBr(IsLess, LoopBody, FetchMore);
|
||||
|
||||
|
|
Loading…
Reference in New Issue