mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #64342 from hborla/macro-attribute-circularity
[Macros] Use the original attribute list when gathering possible macro-generated names in the source lookup cache.
This commit is contained in:
@@ -350,7 +350,7 @@ void SourceLookupCache::populateAuxiliaryDeclCache() {
|
||||
// macro does not produce the requested name, so the only impact is possibly
|
||||
// expanding earlier than needed / unnecessarily looking in the top-level
|
||||
// auxiliary decl cache.
|
||||
for (auto attrConst : decl->getSemanticAttrs().getAttributes<CustomAttr>()) {
|
||||
for (auto attrConst : decl->getAttrs().getAttributes<CustomAttr>()) {
|
||||
auto *attr = const_cast<CustomAttr *>(attrConst);
|
||||
UnresolvedMacroReference macroRef(attr);
|
||||
auto macroName = macroRef.getMacroName().getBaseIdentifier();
|
||||
|
||||
Reference in New Issue
Block a user