1
Fork 0

Disable alignment checks on i686-pc-windows-msvc

This commit is contained in:
Ben Kimock 2023-06-15 18:02:55 -04:00
parent 99b334696f
commit c54672e25f
3 changed files with 25 additions and 0 deletions

View file

@ -15,6 +15,9 @@ pub struct CheckAlignment;
impl<'tcx> MirPass<'tcx> for CheckAlignment {
fn is_enabled(&self, sess: &Session) -> bool {
if sess.target.llvm_target == "i686-pc-windows-msvc" {
return false;
}
sess.opts.debug_assertions
}