================
@@ -751,9 +757,13 @@ void FactsGenerator::handleUse(const Expr *E) {
}
}
-void FactsGenerator::markUseAsWrite(const DeclRefExpr *DRE) {
- if (UseFacts.contains(DRE))
+void FactsGenerator::markUseAsWrite(const DeclRefExpr *DRE,
+ bool IsReferenceWrite) {
+ if (UseFacts.contains(DRE)) {
----------------
Xazax-hun wrote:
I know this is in existing code, but we have multiple consecutive lookups of
`DRE`. I think we should use `find` and an iterator to avoid the double lookup.
https://github.com/llvm/llvm-project/pull/184295
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits