We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8da513 commit 5251769Copy full SHA for 5251769
compiler/rustc_codegen_llvm/src/context.rs
@@ -191,7 +191,7 @@ pub unsafe fn create_module<'ll>(
191
//
192
// FIXME(#34960)
193
let cfg_llvm_root = option_env!("CFG_LLVM_ROOT").unwrap_or("");
194
- let custom_llvm_used = cfg_llvm_root.trim() != "";
+ let custom_llvm_used = !cfg_llvm_root.trim().is_empty();
195
196
if !custom_llvm_used && target_data_layout != llvm_data_layout {
197
bug!(
0 commit comments