about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-01-29 06:14:19 +0100
committerGitHub <noreply@github.com>2023-01-29 06:14:19 +0100
commit74655dc50762ec6f28bfedf1e87aea5bdade29eb (patch)
treefd495d2b97740a1ec019376715ca3a31507546fe /compiler/rustc_codegen_llvm/src
parent70fc114cccc7ed7fb85f9c841c5a7b74125dbfbb (diff)
parent5251769c9e1f6424a982c31fccf45e347c606171 (diff)
downloadrust-74655dc50762ec6f28bfedf1e87aea5bdade29eb.tar.gz
rust-74655dc50762ec6f28bfedf1e87aea5bdade29eb.zip
Rollup merge of #107413 - tshepang:pleasant-readin, r=Nilstrieb
make more pleasant to read
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs
index d9ccba07a34..32cd3a4efa2 100644
--- a/compiler/rustc_codegen_llvm/src/context.rs
+++ b/compiler/rustc_codegen_llvm/src/context.rs
@@ -191,7 +191,7 @@ pub unsafe fn create_module<'ll>(
         //
         // FIXME(#34960)
         let cfg_llvm_root = option_env!("CFG_LLVM_ROOT").unwrap_or("");
-        let custom_llvm_used = cfg_llvm_root.trim() != "";
+        let custom_llvm_used = !cfg_llvm_root.trim().is_empty();
 
         if !custom_llvm_used && target_data_layout != llvm_data_layout {
             bug!(