forked from OSchip/llvm-project
[NFC] Minor fix for deferred diagnostics emitter
Differential Revision: https://reviews.llvm.org/D77028
This commit is contained in:
parent
2c5d6dfda9
commit
77e2493602
|
@ -1555,7 +1555,7 @@ public:
|
|||
emitDeferredDiags(FD, Caller);
|
||||
// Do not revisit a function if the function body has been completely
|
||||
// visited before.
|
||||
if (Done.count(FD))
|
||||
if (!Done.insert(FD).second)
|
||||
return;
|
||||
InUsePath.insert(FD);
|
||||
UsePath.push_back(FD);
|
||||
|
@ -1564,7 +1564,6 @@ public:
|
|||
}
|
||||
UsePath.pop_back();
|
||||
InUsePath.erase(FD);
|
||||
Done.insert(FD);
|
||||
}
|
||||
|
||||
void checkRecordedDecl(Decl *D) {
|
||||
|
|
Loading…
Reference in New Issue