Disable alignment checks on i686-pc-windows-msvc
This commit is contained in:
parent
99b334696f
commit
c54672e25f
3 changed files with 25 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue