Skip to content

Commit 42d2a21

Browse files
committed
Sema: qualify the flags member
When building with Visual Studio, the flags member would not be found. Qualify the member with the scope (class name) to resolve the ambiguity.
1 parent 9cda374 commit 42d2a21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Sema/TypeCheckType.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ class TypeResolutionOptions {
141141
Context context = Context::None;
142142
// TypeResolutionFlags
143143
uint16_t flags = 0;
144-
static_assert(sizeof(flags) == sizeof(TypeResolutionFlags),
145-
"Flags size error");
144+
static_assert(sizeof(TypeResolutionOptions::flags) ==
145+
sizeof(TypeResolutionFlags),
146+
"Flags size error");
146147

147148
public:
148149
~TypeResolutionOptions() = default;

0 commit comments

Comments
 (0)