[cfe-commits] r61817 - /cfe/trunk/lib/CodeGen/CGObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Jan 6 10:56:32 PST 2009
Author: fjahanian
Date: Tue Jan 6 12:56:31 2009
New Revision: 61817
URL: http://llvm.org/viewvc/llvm-project?rev=61817&view=rev
Log:
Couple of code gen. fixes in ObjC's colection-statement. Hard
to track down, easy to fix. This is on going.
Modified:
cfe/trunk/lib/CodeGen/CGObjC.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjC.cpp?rev=61817&r1=61816&r2=61817&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjC.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjC.cpp Tue Jan 6 12:56:31 2009
@@ -504,7 +504,9 @@
EmitBlock(AfterBody);
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);
More information about the cfe-commits
mailing list