Ensure we always get a constant, even without mir opts
This commit is contained in:
parent
8876cf7181
commit
964c58a7d9
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ pub fn option_none_init() -> [Option<u8>; N] {
|
|||
// CHECK-NOT: switch
|
||||
// CHECK: icmp
|
||||
// CHECK-NOT: call void @llvm.memset.p0
|
||||
[None; N]
|
||||
[const { None }; N]
|
||||
}
|
||||
|
||||
// Use an opaque function to prevent rustc from removing useless drops.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue