We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2343ee commit 7217bc0Copy full SHA for 7217bc0
lib/AST/Decl.cpp
@@ -6671,10 +6671,9 @@ bool EnumDecl::hasOnlyCasesWithoutAssociatedValues() const {
6671
bool hasAssociatedValues = false;
6672
6673
for (auto elt : getAllElements()) {
6674
- for (auto Attr : elt->getSemanticAvailableAttrs()) {
6675
- // FIXME: [availability] Deprecation doesn't make an element unavailable
+ // FIXME: [availability] Deprecation doesn't make an element unavailable
+ if (!elt->getSemanticAvailableAttrs().empty())
6676
hasAnyUnavailableValues = true;
6677
- }
6678
6679
if (!elt->isAvailableDuringLowering())
6680
hasAnyUnavailableDuringLoweringValues = true;
0 commit comments