Update compiler/rustc_mir_transform/src/check_alignment.rs

This commit is contained in:
Wesley Wiser 2023-06-16 09:55:23 -04:00 committed by GitHub
parent c54672e25f
commit 4ef316f397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ pub struct CheckAlignment;
impl<'tcx> MirPass<'tcx> for CheckAlignment { impl<'tcx> MirPass<'tcx> for CheckAlignment {
fn is_enabled(&self, sess: &Session) -> bool { fn is_enabled(&self, sess: &Session) -> bool {
// FIXME(#112480) MSVC and rustc disagree on minimum stack alignment on x86 Windows
if sess.target.llvm_target == "i686-pc-windows-msvc" { if sess.target.llvm_target == "i686-pc-windows-msvc" {
return false; return false;
} }