Skip to content

Commit b443fa5

Browse files
committed
Avoid warning about an exhaustive switch over an option set. NFC.
1 parent e11c6f6 commit b443fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/NameLookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ bool DeclContext::lookupQualified(Type type,
10601060
return false;
10611061

10621062
auto checkLookupCascading = [this, options]() -> Optional<bool> {
1063-
switch (options & NL_KnownDependencyMask) {
1063+
switch (static_cast<unsigned>(options & NL_KnownDependencyMask)) {
10641064
case 0:
10651065
return isCascadingContextForLookup(/*excludeFunctions=*/false);
10661066
case NL_KnownNonCascadingDependency:

0 commit comments

Comments
 (0)