From 517e35f845e010788b6febe42fd6ddb187b8c236 Mon Sep 17 00:00:00 2001 From: Merry Date: Sun, 15 Aug 2021 19:32:05 +0100 Subject: [PATCH] decoder_detail: Avoid MSVC ICE MSVC has an internal compiler error when assume is present in this constexpr function --- src/dynarmic/frontend/decoder/decoder_detail.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dynarmic/frontend/decoder/decoder_detail.h b/src/dynarmic/frontend/decoder/decoder_detail.h index 98bccff7..b5541d62 100644 --- a/src/dynarmic/frontend/decoder/decoder_detail.h +++ b/src/dynarmic/frontend/decoder/decoder_detail.h @@ -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); }