Commit 367efa0b authored by Chuanqi Xu's avatar Chuanqi Xu
Browse files

[NFC] [Modules] Avoid scanning the stored decl list twice when replace

external decls

This patch fixes a FIXME in StoredDeclList::replaceExternalDecls.

StoredDeclList::replaceExternalDecls will iterate the list first to
remove some declarations and iterate the list again to get the tail of
the list.

It should be better to avoid the second iterations.
parent e3dea5e3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment