mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
now that DeclAttributes is a single word, there is no reason to deal with
it indirectly through another pointer from Decl, just embed DeclAttributes directly into Decl and get rid of the "getMutableAttrs" nonsense. Swift SVN r20216
This commit is contained in:
@@ -979,7 +979,7 @@ void ModuleFile::getImportDecls(SmallVectorImpl<Decl *> &Results) {
|
||||
auto *ID = ImportDecl::create(Ctx, FileContext, SourceLoc(), Kind,
|
||||
SourceLoc(), AccessPath);
|
||||
if (Dep.isExported())
|
||||
ID->getMutableAttrs().add(
|
||||
ID->getAttrs().add(
|
||||
new (Ctx) ExportedAttr(/*IsImplicit=*/false));
|
||||
ImportDecls.push_back(ID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user