[llvm] [GenericDomTree][NFC] Use llvm algorithms (PR #97104)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 2 20:36:13 PDT 2024


================
@@ -885,6 +874,12 @@ class DominatorTreeBase {
         NewBBIDom = findNearestCommonDominator(NewBBIDom, PredBlocks[i]);
     }
 
+    bool NewBBDominatesNewBBSucc =
+      llvm::none_of(inverse_children<N>(NewBBSucc), [=](const auto *Pred) {
----------------
MagentaTreehouse wrote:

Good point here. It is also implicitly capturing `this` which is deprecated in C++20.

https://github.com/llvm/llvm-project/pull/97104


More information about the llvm-commits mailing list