about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-08-24 15:05:26 +1000
committerZalathar <Zalathar@users.noreply.github.com>2025-08-24 23:09:54 +1000
commit455a67bd4f38b10e613fc6e2103598db10ad57fe (patch)
treee4ea440503105c9515450042c945af02d3230fab /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent4eedad312695d773b6e2e17a4f8082660470c101 (diff)
downloadrust-455a67bd4f38b10e613fc6e2103598db10ad57fe.tar.gz
rust-455a67bd4f38b10e613fc6e2103598db10ad57fe.zip
Replace the `llvm::Bool` typedef with a proper newtype
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm_util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs
index 90f7cd43268..d5025bb405c 100644
--- a/compiler/rustc_codegen_llvm/src/llvm_util.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs
@@ -26,7 +26,7 @@ static INIT: Once = Once::new();
 pub(crate) fn init(sess: &Session) {
     unsafe {
         // Before we touch LLVM, make sure that multithreading is enabled.
-        if llvm::LLVMIsMultithreaded() != 1 {
+        if !llvm::LLVMIsMultithreaded().is_true() {
             bug!("LLVM compiled without support for threads");
         }
         INIT.call_once(|| {