diff options
| author | Oli Scherer <github35764891676564198441@oli-obk.de> | 2024-12-13 05:50:39 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-13 05:50:39 +0000 |
| commit | 55db25b1cab26c39d3d647890da89f1bbb7e615b (patch) | |
| tree | 5805c74a884bf2d344c0db89dfef759a8435d0d2 /compiler/rustc_codegen_llvm/src | |
| parent | 8e8d6d6d875393dd24be9c53deacc16f2929bd33 (diff) | |
| parent | 8652177c6328fb67981ec74cfe93dd1f3399e4fa (diff) | |
| download | rust-55db25b1cab26c39d3d647890da89f1bbb7e615b.tar.gz rust-55db25b1cab26c39d3d647890da89f1bbb7e615b.zip | |
Merge pull request #4094 from rust-lang/rustup-2024-12-13
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index 8b4523bd252..d62632d1431 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -17,7 +17,9 @@ use super::debuginfo::{ DebugEmissionKind, DebugNameTableKind, }; -pub type Bool = c_uint; +/// In the LLVM-C API, boolean values are passed as `typedef int LLVMBool`, +/// which has a different ABI from Rust or C++ `bool`. +pub type Bool = c_int; pub const True: Bool = 1 as Bool; pub const False: Bool = 0 as Bool; |
