================
@@ -587,6 +590,8 @@ void 
DiagnosticsEngine::setDiagSuppressionMapping(llvm::MemoryBuffer &Input) {
     return;
   }
   WarningSuppressionList->processSections(*this);
+  DiagsInSuppressionMapping.clear();
+  
DiagsInSuppressionMapping.insert_range(WarningSuppressionList->mappedDiags());
----------------
zmodem wrote:

This creates a copy of the WarningSuppressionList's keys. Is there some way 
hasDiagSuppressionMappingFor() could reach into and check if the key exists in 
WarningSuppressionList's map instead?

https://github.com/llvm/llvm-project/pull/244714
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to