diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-02-18 16:23:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-18 16:23:33 +0100 |
| commit | a144ea1c4b39bdef608c537b25343674aa2b5bc7 (patch) | |
| tree | f254265efe6fcda78534a586983a65940f4d6f1d /compiler/rustc_codegen_llvm/src | |
| parent | f1c918f1f3166c1cb2624ce2e2783d357e70dc3d (diff) | |
| parent | b80057d08d9f1b1726ec99dc57296cffec246bb1 (diff) | |
| download | rust-a144ea1c4b39bdef608c537b25343674aa2b5bc7.tar.gz rust-a144ea1c4b39bdef608c537b25343674aa2b5bc7.zip | |
Rollup merge of #93634 - matthiaskrgr:clippy_complexity_jan_2022, r=oli-obk
compiler: clippy::complexity fixes useless_format map_flatten useless_conversion needless_bool filter_next clone_on_copy needless_option_as_deref
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 ec68f6eb0f8..90ddf791450 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -292,7 +292,7 @@ pub unsafe fn create_module<'ll>( "sign-return-address-all\0".as_ptr().cast(), pac_opts.leaf.into(), ); - let is_bkey = if pac_opts.key == PAuthKey::A { false } else { true }; + let is_bkey: bool = pac_opts.key != PAuthKey::A; llvm::LLVMRustAddModuleFlag( llmod, llvm::LLVMModFlagBehavior::Error, |
