 
                                         load_isbound = @emitLoadEjsFunctionIsBound closure
 
-                                        cmp = ir.createICmpEq load_isbound, (consts.int32 0), "notbound?"
+                                        cmp = ir.createICmpEq load_isbound, consts.int32(0), "notbound?"
                                         ir.createCondBr cmp, direct_invoke_bb, runtime_invoke_bb
 
                                         @doInsideBBlock runtime_invoke_bb, =>


        visitThisExpression: (n) ->
                debug.log "visitThisExpression"
                @createLoad (@findIdentifierInScope "%this"), "load_this"

        visitIdentifier: (n) ->
                debug.log -> "identifier #{n.name}"

                        invoke_merge_bb = new llvm.BasicBlock "invoke_merge_bb", insertFunc
                        
                        candidate = argv[0]
                        cmp = @createEjsvalICmpUGt candidate, consts.int64_lowhi(0xfffbffff, 0xffffffff), "cmpresult"
                        ir.createCondBr cmp, candidate_is_object_bb, object_isnt_function_bb

                        @doInsideBBlock object_isnt_function_bb, =>
