We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a6dc8c commit ba1d18fCopy full SHA for ba1d18f
src/libsyntax_pos/analyze_filemap.rs
@@ -102,6 +102,8 @@ cfg_if! {
102
103
for chunk_index in 0 .. chunk_count {
104
let ptr = src_bytes.as_ptr() as *const __m128i;
105
+ // We don't know if the pointer is aligned to 16 bytes, so we
106
+ // use `loadu`, which supports unaligned loading.
107
let chunk = _mm_loadu_si128(ptr.offset(chunk_index as isize));
108
109
// For character in the chunk, see if its byte value is < 0, which
0 commit comments