Skip to content

Commit f1cec57

Browse files
committed
Make GEPi use InBoundsGEP.
1 parent 93d425e commit f1cec57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/middle/trans.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ fn dynamic_align_of(cx: &@block_ctxt, t: &ty::t) -> result {
675675
fn GEPi(cx: &@block_ctxt, base: ValueRef, ixs: &[int]) -> ValueRef {
676676
let v: [ValueRef] = ~[];
677677
for i: int in ixs { v += ~[C_int(i)]; }
678-
ret cx.build.GEP(base, v);
678+
ret cx.build.InBoundsGEP(base, v);
679679
}
680680

681681
// Increment a pointer by a given amount and then cast it to be a pointer

0 commit comments

Comments
 (0)