[llvm-branch-commits] [clang] [NFC][SSAF] Extract common code in Analyses to a shared file (PR #191932)

Balázs Benics via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Apr 17 07:33:21 PDT 2026


================
@@ -86,19 +68,19 @@ class EntityPointerLevelTranslator
     return EntityPointerLevelSet{Incremented.begin(), Incremented.end()};
   }
 
-  std::function<EntityId(EntityName EN)> AddEntity;
+  llvm::function_ref<EntityId(EntityName EN)> AddEntity;
----------------
steakhal wrote:

This must remain `std::function` unfortunately, see my comment at the constructor definition.

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


More information about the llvm-branch-commits mailing list