We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1f8ce6 commit 466753bCopy full SHA for 466753b
clang/lib/AST/ExternalASTMerger.cpp
@@ -276,8 +276,8 @@ bool ExternalASTMerger::HasImporterForOrigin(ASTContext &OriginContext) {
276
template <typename CallbackType>
277
void ExternalASTMerger::ForEachMatchingDC(const DeclContext *DC,
278
CallbackType Callback) {
279
- if (Origins.count(DC)) {
280
- ExternalASTMerger::DCOrigin Origin = Origins[DC];
+ if (auto It = Origins.find(DC); It != Origins.end()) {
+ ExternalASTMerger::DCOrigin Origin = It->second;
281
LazyASTImporter &Importer = LazyImporterForOrigin(*this, *Origin.AST);
282
Callback(Importer, Importer.GetReverse(), Origin.DC);
283
} else {
0 commit comments