Convert from transform to map
This commit is contained in:
parent
b402e343e4
commit
7343478d67
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ impl CrateContext {
|
||||||
debug!("const_inbounds_gepi: pointer=%s indices=%?",
|
debug!("const_inbounds_gepi: pointer=%s indices=%?",
|
||||||
self.tn.val_to_str(pointer), indices);
|
self.tn.val_to_str(pointer), indices);
|
||||||
let v: ~[ValueRef] =
|
let v: ~[ValueRef] =
|
||||||
indices.iter().transform(|i| C_i32(*i as i32)).collect();
|
indices.iter().map(|i| C_i32(*i as i32)).collect();
|
||||||
unsafe {
|
unsafe {
|
||||||
llvm::LLVMConstInBoundsGEP(pointer,
|
llvm::LLVMConstInBoundsGEP(pointer,
|
||||||
vec::raw::to_ptr(v),
|
vec::raw::to_ptr(v),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue