diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-01-29 06:14:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-29 06:14:19 +0100 |
| commit | 74655dc50762ec6f28bfedf1e87aea5bdade29eb (patch) | |
| tree | fd495d2b97740a1ec019376715ca3a31507546fe /compiler/rustc_codegen_llvm/src | |
| parent | 70fc114cccc7ed7fb85f9c841c5a7b74125dbfbb (diff) | |
| parent | 5251769c9e1f6424a982c31fccf45e347c606171 (diff) | |
| download | rust-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.rs | 2 |
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!( |
