@@ -150,7 +150,8 @@ pub fn trans_intrinsic(ccx: &CrateContext,
150150 let src_ptr = PointerCast ( bcx, get_param ( decl, first_real_arg + 1 ) , Type :: i8p ( ccx) ) ;
151151 let count = get_param ( decl, first_real_arg + 2 ) ;
152152 let llfn = ccx. get_intrinsic ( & name) ;
153- Call ( bcx, llfn, [ dst_ptr, src_ptr, Mul ( bcx, size, count) , align, C_i1 ( ccx, volatile) ] , [ ] ) ;
153+ Call ( bcx, llfn,
154+ [ dst_ptr, src_ptr, Mul ( bcx, size, count) , align, C_bool ( ccx, volatile) ] , [ ] ) ;
154155 RetVoid ( bcx) ;
155156 }
156157
@@ -171,13 +172,13 @@ pub fn trans_intrinsic(ccx: &CrateContext,
171172 let val = get_param ( decl, first_real_arg + 1 ) ;
172173 let count = get_param ( decl, first_real_arg + 2 ) ;
173174 let llfn = ccx. get_intrinsic ( & name) ;
174- Call ( bcx, llfn, [ dst_ptr, val, Mul ( bcx, size, count) , align, C_i1 ( ccx, volatile) ] , [ ] ) ;
175+ Call ( bcx, llfn, [ dst_ptr, val, Mul ( bcx, size, count) , align, C_bool ( ccx, volatile) ] , [ ] ) ;
175176 RetVoid ( bcx) ;
176177 }
177178
178179 fn count_zeros_intrinsic ( bcx : & Block , name : & ' static str ) {
179180 let x = get_param ( bcx. fcx . llfn , bcx. fcx . arg_pos ( 0 u) ) ;
180- let y = C_i1 ( bcx. ccx ( ) , false ) ;
181+ let y = C_bool ( bcx. ccx ( ) , false ) ;
181182 let llfn = bcx. ccx ( ) . get_intrinsic ( & name) ;
182183 let llcall = Call ( bcx, llfn, [ x, y] , [ ] ) ;
183184 Ret ( bcx, llcall) ;
0 commit comments