Skip to content

Commit 49397b5

Browse files
committed
rustc: Remove dead i2p function
1 parent cc5fcfc commit 49397b5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/comp/middle/trans.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6904,10 +6904,6 @@ fn vi2p(cx: &@block_ctxt, v: ValueRef, t: TypeRef) -> ValueRef {
69046904

69056905
fn p2i(v: ValueRef) -> ValueRef { ret llvm::LLVMConstPtrToInt(v, T_int()); }
69066906

6907-
fn i2p(v: ValueRef, t: TypeRef) -> ValueRef {
6908-
ret llvm::LLVMConstIntToPtr(v, t);
6909-
}
6910-
69116907
fn declare_intrinsics(llmod: ModuleRef) -> hashmap<str, ValueRef> {
69126908
let T_memmove32_args: [TypeRef] =
69136909
~[T_ptr(T_i8()), T_ptr(T_i8()), T_i32(), T_i32(), T_i1()];

0 commit comments

Comments
 (0)