diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2021-03-18 22:10:36 +0100 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-03-21 20:10:53 +0100 |
| commit | 08c5ffd4a3e79aeb9a4cc79576d97760a9be25de (patch) | |
| tree | a004a01e9a28a1b461b19d01cce4824328a1aff0 /compiler/rustc_codegen_llvm/src | |
| parent | dfc4cafe8e7b5c5198ba3a9d9c57a2e1f09d03bd (diff) | |
| download | rust-08c5ffd4a3e79aeb9a4cc79576d97760a9be25de.tar.gz rust-08c5ffd4a3e79aeb9a4cc79576d97760a9be25de.zip | |
Convert -Z mutable-noalias to Optional<bool>
The default value will dependend on the LLVM version in the future, so don't specify one to start with.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/abi.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/abi.rs b/compiler/rustc_codegen_llvm/src/abi.rs index 46e8e2a71cb..869c8e981f9 100644 --- a/compiler/rustc_codegen_llvm/src/abi.rs +++ b/compiler/rustc_codegen_llvm/src/abi.rs @@ -62,7 +62,7 @@ fn should_use_mutable_noalias(cx: &CodegenCx<'_, '_>) -> bool { // // For now, do not enable mutable_noalias by default at all, while the // issue is being figured out. - cx.tcx.sess.opts.debugging_opts.mutable_noalias + cx.tcx.sess.opts.debugging_opts.mutable_noalias.unwrap_or(false) } impl ArgAttributesExt for ArgAttributes { |
