1
0
Fork 0
mirror of https://git.suyu.dev/suyu/dynarmic.git synced 2025-03-05 13:45:36 +00:00

decoder_detail: Avoid MSVC ICE

MSVC has an internal compiler error when assume is present in this constexpr function
This commit is contained in:
Merry 2021-08-15 19:32:05 +01:00
parent 2e4f99ae3d
commit 517e35f845

View file

@ -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; }));
#endif
return std::make_tuple(masks, shifts);
}