================
@@ -4441,9 +4441,9 @@ class ASTDeclContextNameLookupTrait
DeclIDs.push_back(ID);
};
+ ASTReader *Chain = Writer.getChain();
for (NamedDecl *D : Decls) {
- if (ASTReader *Chain = Writer.getChain();
- Chain && isa<NamespaceDecl>(D) && D->isFromASTFile() &&
+ if (Chain && isa<NamespaceDecl>(D) && D->isFromASTFile() &&
----------------
hubert-reinterpretcast wrote:
This part is NFC, but not a "minor comment fix".
https://github.com/llvm/llvm-project/pull/172524
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits