mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 06:47:34 +00:00
Make GEPi use InBoundsGEP.
This commit is contained in:
parent
93d425e7a5
commit
f1cec5793f
@ -675,7 +675,7 @@ fn dynamic_align_of(cx: &@block_ctxt, t: &ty::t) -> result {
|
||||
fn GEPi(cx: &@block_ctxt, base: ValueRef, ixs: &[int]) -> ValueRef {
|
||||
let v: [ValueRef] = ~[];
|
||||
for i: int in ixs { v += ~[C_int(i)]; }
|
||||
ret cx.build.GEP(base, v);
|
||||
ret cx.build.InBoundsGEP(base, v);
|
||||
}
|
||||
|
||||
// Increment a pointer by a given amount and then cast it to be a pointer
|
||||
|
Loading…
Reference in New Issue
Block a user