We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93d425e commit f1cec57Copy full SHA for f1cec57
src/comp/middle/trans.rs
@@ -675,7 +675,7 @@ fn dynamic_align_of(cx: &@block_ctxt, t: &ty::t) -> result {
675
fn GEPi(cx: &@block_ctxt, base: ValueRef, ixs: &[int]) -> ValueRef {
676
let v: [ValueRef] = ~[];
677
for i: int in ixs { v += ~[C_int(i)]; }
678
- ret cx.build.GEP(base, v);
+ ret cx.build.InBoundsGEP(base, v);
679
}
680
681
// Increment a pointer by a given amount and then cast it to be a pointer
0 commit comments