Skip to content

Commit 83f1f11

Browse files
committed
hack around bug in emscripten
1 parent b795b7b commit 83f1f11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libcore/mem.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,9 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
503503
// that swapping either 32 bytes or 64 bytes at a time is most efficient for intel
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.
506-
#[repr(simd)]
506+
//
507+
// FIXME repr(simd) broken on emscripten
508+
#[cfg_attr(not(target_os = "emscripten"), repr(simd))]
507509
struct Block(u64, u64, u64, u64);
508510
struct UnalignedBlock(u64, u64, u64, u64);
509511

0 commit comments

Comments
 (0)