fix(common): Allow using with MIRI (#1426)

This commit is contained in:
playX 2021-02-22 15:50:19 +03:00 committed by GitHub
parent 7f5bfdcc00
commit abfff69300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ cfg_if::cfg_if! {
lines: &mut Vec<BytePos>,
multi_byte_chars: &mut Vec<MultiByteChar>,
non_narrow_chars: &mut Vec<NonNarrowChar>) {
if is_x86_feature_detected!("sse2") {
if is_x86_feature_detected!("sse2") && cfg!(not(miri)) {
unsafe {
analyze_source_file_sse2(src,
source_file_start_pos,