Change type of mutable_noalias to bool

This commit is contained in:
Tomasz Miąsko 2023-01-06 00:00:00 +00:00
parent deba5ddd07
commit 78075e1e26
3 changed files with 3 additions and 3 deletions

View file

@ -259,7 +259,7 @@ fn adjust_for_rust_scalar<'tcx>(
// LLVM prior to version 12 had known miscompiles in the presence of noalias attributes
// (see #54878), so it was conditionally disabled, but we don't support earlier
// versions at all anymore. We still support turning it off using -Zmutable-noalias.
let noalias_mut_ref = cx.tcx.sess.opts.unstable_opts.mutable_noalias.unwrap_or(true);
let noalias_mut_ref = cx.tcx.sess.opts.unstable_opts.mutable_noalias;
// `&mut` pointer parameters never alias other parameters,
// or mutable global data