Skip to content

Commit c1542bf

Browse files
committed
[SourceKit] Guard static assert by _MSC_VER
1 parent f17671c commit c1542bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/SourceKit/lib/SwiftLang/SwiftEditor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,7 @@ struct SwiftSemanticToken {
609609
return SwiftLangSupport::getUIDForCodeCompletionDeclKind(Kind, getIsRef());
610610
}
611611
};
612-
#if SWIFT_COMPILER_IS_MSVC
613-
#else
612+
#if !defined(_MSC_VER)
614613
static_assert(sizeof(SwiftSemanticToken) == 8, "Too big");
615614
// FIXME: MSVC doesn't pack bitfields with different underlying types.
616615
// Giving up to check this in MSVC for now, becasue static_assert is only for

0 commit comments

Comments
 (0)