@@ -349,7 +349,7 @@ fn iter_vec_loop<'blk, 'tcx, F>(bcx: Block<'blk, 'tcx>,
349
349
let plusone = Add ( bcx, loop_counter, C_uint ( bcx. ccx ( ) , 1usize ) , DebugLoc :: None ) ;
350
350
AddIncomingToPhi ( loop_counter, plusone, bcx. llbb ) ;
351
351
352
- let cond_val = ICmp ( bcx, llvm:: IntULT , plusone, count, DebugLoc :: None ) ;
352
+ let cond_val = ICmp ( bcx, llvm:: IntNE , plusone, count, DebugLoc :: None ) ;
353
353
CondBr ( bcx, cond_val, loop_bcx. llbb , next_bcx. llbb , DebugLoc :: None ) ;
354
354
355
355
next_bcx
@@ -381,7 +381,7 @@ pub fn iter_vec_raw<'blk, 'tcx, F>(bcx: Block<'blk, 'tcx>,
381
381
let data_ptr =
382
382
Phi ( header_bcx, val_ty ( data_ptr) , & [ data_ptr] , & [ bcx. llbb ] ) ;
383
383
let not_yet_at_end =
384
- ICmp ( header_bcx, llvm:: IntULT , data_ptr, data_end_ptr, DebugLoc :: None ) ;
384
+ ICmp ( header_bcx, llvm:: IntNE , data_ptr, data_end_ptr, DebugLoc :: None ) ;
385
385
let body_bcx = fcx. new_temp_block ( "iter_vec_loop_body" ) ;
386
386
let next_bcx = fcx. new_temp_block ( "iter_vec_next" ) ;
387
387
CondBr ( header_bcx, not_yet_at_end, body_bcx. llbb , next_bcx. llbb , DebugLoc :: None ) ;
0 commit comments