1
Fork 0

use is_empty() instead of len() == x to determine if structs are empty.

This commit is contained in:
Matthias Krüger 2020-02-28 14:20:33 +01:00
parent e2223c94bf
commit 9523c89f18
54 changed files with 78 additions and 82 deletions

View file

@ -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