Skip to content

Commit c83a22c

Browse files
authored
Disable repr(simd) in mem::swap on Redox
1 parent 0414594 commit c83a22c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/mem.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,8 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
504504
// Haswell E processors. LLVM is more able to optimize if we give a struct a
505505
// #[repr(simd)], even if we don't actually use this struct directly.
506506
//
507-
// FIXME repr(simd) broken on emscripten
508-
#[cfg_attr(not(target_os = "emscripten"), repr(simd))]
507+
// FIXME repr(simd) broken on emscripten and redox
508+
#[cfg_attr(not(any(target_os = "emscripten", target_os = "redox")), repr(simd))]
509509
struct Block(u64, u64, u64, u64);
510510
struct UnalignedBlock(u64, u64, u64, u64);
511511

0 commit comments

Comments
 (0)