[SourceKit] Guard static assert by _MSC_VER

This commit is contained in:
Alex Hoppen
2021-12-21 11:56:03 +01:00
parent f17671c4a6
commit c1542bf80e

View File

@@ -609,8 +609,7 @@ struct SwiftSemanticToken {
return SwiftLangSupport::getUIDForCodeCompletionDeclKind(Kind, getIsRef());
}
};
#if SWIFT_COMPILER_IS_MSVC
#else
#if !defined(_MSC_VER)
static_assert(sizeof(SwiftSemanticToken) == 8, "Too big");
// FIXME: MSVC doesn't pack bitfields with different underlying types.
// Giving up to check this in MSVC for now, becasue static_assert is only for