diff options
| author | Augie Fackler <augie@google.com> | 2023-11-03 14:24:23 -0400 |
|---|---|---|
| committer | Augie Fackler <augie@google.com> | 2023-11-03 15:40:17 -0400 |
| commit | f8daa7d4f6c13ca12f3074ee2ba4f9866a6f8bee (patch) | |
| tree | bc229728ad3ffbbdaf9cc5954bc1bbc1aa777711 /compiler/rustc_codegen_llvm/src/llvm/ffi.rs | |
| parent | adda05fe3ebf4942aea1c0b8085ac2b46ce63fcf (diff) | |
| download | rust-f8daa7d4f6c13ca12f3074ee2ba4f9866a6f8bee.tar.gz rust-f8daa7d4f6c13ca12f3074ee2ba4f9866a6f8bee.zip | |
consts: remove dead code around `i1` constant values
`LLVMConstZext` recently got deleted, and it turns out (thanks to @nikic for knowing!) that this is dead code. Tests all pass for me without this logic, and per nikic: > We always generate constants in "relocatable bag of bytes" > representation, so you're never going to get a plain bool. So this should be a safe thing to do. r? @nikic @rustbot label: +llvm-main
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index a038b3af03d..7fc02a95be0 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -969,7 +969,6 @@ extern "C" { ConstantIndices: *const &'a Value, NumIndices: c_uint, ) -> &'a Value; - pub fn LLVMConstZExt<'a>(ConstantVal: &'a Value, ToType: &'a Type) -> &'a Value; pub fn LLVMConstPtrToInt<'a>(ConstantVal: &'a Value, ToType: &'a Type) -> &'a Value; pub fn LLVMConstIntToPtr<'a>(ConstantVal: &'a Value, ToType: &'a Type) -> &'a Value; pub fn LLVMConstBitCast<'a>(ConstantVal: &'a Value, ToType: &'a Type) -> &'a Value; |
