mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
ptr: fix offset intrinsic
This was intended to always use inbounds pointer arithmetic now.
This commit is contained in:
@@ -402,11 +402,6 @@ fn count_zeros_intrinsic(bcx: @mut Block, name: &'static str) {
|
||||
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]));
|
||||
|
||||
Reference in New Issue
Block a user