Skip to content

Commit 62d99fb

Browse files
authored
Merge pull request #61083 from CodaFi/lookup-look-down
[NFC] Switch to the Normal EnumDecl::getAllElements
2 parents 008bbe2 + 8b9521d commit 62d99fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/IDE/CompletionLookup.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2091,9 +2091,7 @@ bool CompletionLookup::handleEnumElement(ValueDecl *D,
20912091
/*HasTypeContext=*/true);
20922092
return true;
20932093
} else if (auto *ED = dyn_cast<EnumDecl>(D)) {
2094-
llvm::DenseSet<EnumElementDecl *> Elements;
2095-
ED->getAllElements(Elements);
2096-
for (auto *Ele : Elements) {
2094+
for (auto *Ele : ED->getAllElements()) {
20972095
addEnumElementRef(Ele, Reason, dynamicLookupInfo,
20982096
/*HasTypeContext=*/true);
20992097
}

0 commit comments

Comments
 (0)