decoder_detail: Avoid MSVC ICE
MSVC has an internal compiler error when assume is present in this constexpr function
This commit is contained in:
parent
2e4f99ae3d
commit
517e35f845
1 changed files with 3 additions and 0 deletions
|
@ -104,7 +104,10 @@ struct detail {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef DYNARMIC_IGNORE_ASSERTS
|
||||||
|
// Avoids a MSVC ICE.
|
||||||
ASSERT(std::all_of(masks.begin(), masks.end(), [](auto m) { return m != 0; }));
|
ASSERT(std::all_of(masks.begin(), masks.end(), [](auto m) { return m != 0; }));
|
||||||
|
#endif
|
||||||
|
|
||||||
return std::make_tuple(masks, shifts);
|
return std::make_tuple(masks, shifts);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue