Skip to content

Commit

Permalink
Disable MIR optimization for alignment codegen tests
Browse files Browse the repository at this point in the history
NRVO optimizes away the locals whose alignment is tested. I don't think
this affects the purpose of the test.
  • Loading branch information
ecstatic-morse committed May 17, 2020
1 parent b19d5c0 commit 8c71011
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/codegen/align-enum.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// compile-flags: -C no-prepopulate-passes
// compile-flags: -C no-prepopulate-passes -Z mir-opt-level=0
// ignore-tidy-linelength

#![crate_type = "lib"]
Expand Down
2 changes: 1 addition & 1 deletion src/test/codegen/align-struct.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// compile-flags: -C no-prepopulate-passes
// compile-flags: -C no-prepopulate-passes -Z mir-opt-level=0
// ignore-tidy-linelength

#![crate_type = "lib"]
Expand Down

0 comments on commit 8c71011

Please sign in to comment.