From 8d12476edb02a43b9264be1270954e2b3a39a6eb Mon Sep 17 00:00:00 2001 From: Emil Lenngren Date: Thu, 24 May 2012 23:24:44 +0000 Subject: [PATCH] [GB.JIT] * BUG: Really fix enumeration for non-pure objects. git-svn-id: svn://localhost/gambas/trunk@4775 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.jit/src/jit_codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb.jit/src/jit_codegen.cpp b/gb.jit/src/jit_codegen.cpp index 0219ed102..084e34bbc 100644 --- a/gb.jit/src/jit_codegen.cpp +++ b/gb.jit/src/jit_codegen.cpp @@ -3176,7 +3176,7 @@ void JumpEnumNextExpression::codegen(){ llvm::Value* stop; if (!TYPE_is_pure_object(jfirst->obj->type)){ store_pc(pc); - stop = builder->CreateICmpNE(builder->CreateCall(get_global_function_jif(EXEC_enum_next, 'c', "h"), getInteger(16, drop)), getInteger(1, false)); + stop = builder->CreateICmpNE(builder->CreateCall(get_global_function_jif(EXEC_enum_next, 'c', "h"), getInteger(16, drop)), getInteger(8, false)); } else { llvm::Value* cenum_obj = extract_value(builder->CreateLoad(locals[jfirst->ctrl+1]), 1); int stop_offset = sizeof(GB_BASE) + sizeof(LIST) + 5*sizeof(void*);