================
@@ -346,6 +346,16 @@ class FactManager {
     return BlockToFacts[B->getBlockID()];
   }
 
+  std::optional<size_t> getBlockID(const Fact *TargetFact) const {
+    for (size_t i = 0; i < BlockToFacts.size(); ++i) {
+      for (const Fact *F : BlockToFacts[i]) {
+        if (F == TargetFact)
+          return i;
+      }
+    }
----------------
usx95 wrote:

You can remove the curly braces for the `for` bodies.

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

Reply via email to