about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/check_alignment.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-06-17 17:42:18 +0200
committerRalf Jung <post@ralfj.de>2023-06-17 17:42:18 +0200
commit14155e95b14495e1713da596cef337c64e1e9f3e (patch)
treeb95862aa9f90c4103b873905c729d3364e280bc5 /compiler/rustc_mir_transform/src/check_alignment.rs
parentdfd5037fa5bea87da79eace69fb6b0c3335f1fd6 (diff)
parentb866113d1918e64140bf15647850373d5a3bbe62 (diff)
downloadrust-14155e95b14495e1713da596cef337c64e1e9f3e.tar.gz
rust-14155e95b14495e1713da596cef337c64e1e9f3e.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_mir_transform/src/check_alignment.rs')
-rw-r--r--compiler/rustc_mir_transform/src/check_alignment.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_mir_transform/src/check_alignment.rs b/compiler/rustc_mir_transform/src/check_alignment.rs
index ef64f70fdf3..fd349c07040 100644
--- a/compiler/rustc_mir_transform/src/check_alignment.rs
+++ b/compiler/rustc_mir_transform/src/check_alignment.rs
@@ -15,6 +15,10 @@ pub struct CheckAlignment;
 
 impl<'tcx> MirPass<'tcx> for CheckAlignment {
     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" {
+            return false;
+        }
         sess.opts.debug_assertions
     }