use is_empty() instead of len() == x to determine if structs are empty.
This commit is contained in:
parent
e2223c94bf
commit
9523c89f18
54 changed files with 78 additions and 82 deletions
|
@ -61,7 +61,7 @@ unsafe fn configure_llvm(sess: &Session) {
|
|||
let sess_args = cg_opts.chain(tg_opts);
|
||||
|
||||
let user_specified_args: FxHashSet<_> =
|
||||
sess_args.clone().map(|s| llvm_arg_to_arg_name(s)).filter(|s| s.len() > 0).collect();
|
||||
sess_args.clone().map(|s| llvm_arg_to_arg_name(s)).filter(|s| !s.is_empty()).collect();
|
||||
|
||||
{
|
||||
// This adds the given argument to LLVM. Unless `force` is true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue