auto merge of #9173 : thestinger/rust/offset, r=alexcrichton
This was intended to always use inbounds pointer arithmetic now.
This commit is contained in:
commit
a241deb979
@ -402,11 +402,6 @@ pub fn trans_intrinsic(ccx: @mut CrateContext,
|
||||
Ret(bcx, morestack_addr);
|
||||
}
|
||||
"offset" => {
|
||||
let ptr = get_param(decl, first_real_arg);
|
||||
let offset = get_param(decl, first_real_arg + 1);
|
||||
Ret(bcx, GEP(bcx, ptr, [offset]));
|
||||
}
|
||||
"offset_inbounds" => {
|
||||
let ptr = get_param(decl, first_real_arg);
|
||||
let offset = get_param(decl, first_real_arg + 1);
|
||||
Ret(bcx, InBoundsGEP(bcx, ptr, [offset]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user