Skip to content

Commit a241deb

Browse files
committed
auto merge of #9173 : thestinger/rust/offset, r=alexcrichton
This was intended to always use inbounds pointer arithmetic now.
2 parents 150b4ff + 2dec95e commit a241deb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/librustc/middle/trans/intrinsic.rs

-5
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,6 @@ pub fn trans_intrinsic(ccx: @mut CrateContext,
402402
Ret(bcx, morestack_addr);
403403
}
404404
"offset" => {
405-
let ptr = get_param(decl, first_real_arg);
406-
let offset = get_param(decl, first_real_arg + 1);
407-
Ret(bcx, GEP(bcx, ptr, [offset]));
408-
}
409-
"offset_inbounds" => {
410405
let ptr = get_param(decl, first_real_arg);
411406
let offset = get_param(decl, first_real_arg + 1);
412407
Ret(bcx, InBoundsGEP(bcx, ptr, [offset]));

0 commit comments

Comments
 (0)