diff --git a/src/wasm-type-printing.h b/src/wasm-type-printing.h index 483c48cf0a3..91d4a45e073 100644 --- a/src/wasm-type-printing.h +++ b/src/wasm-type-printing.h @@ -48,9 +48,9 @@ template struct TypeNameGeneratorBase { private: constexpr void assertValidUsage() { - // This check current causes a crash on MSVC // TODO: Convert to C++20 requires check -#if !defined(_MSC_VER) && (!defined(__GNUC__) || __GNUC__ >= 14) + // The check need MSVC 18.6.0+, otherwise it will cause compiler crash. +#if (!defined(__GNUC__) || __GNUC__ >= 14) // Check that the subclass provides `getNames` with the correct type. using Self = TypeNameGeneratorBase; static_assert(