Skip to content

Commit

Permalink
fix(common): Allow using with MIRI (#1426)
Browse files Browse the repository at this point in the history
  • Loading branch information
playXE authored Feb 22, 2021
1 parent 7f5bfdc commit abfff69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/syntax_pos/analyze_source_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit abfff69

Please sign in to comment.