================
@@ -118,13 +114,16 @@ class IRBuilderBase {
   DebugLoc StoredDL;
 
 protected:
+  using InsertFn = function_ref<void(const IRBuilderBase &, Instruction *,
----------------
fhahn wrote:

Can this be a function pointer instead? I think as is, the construct would 
accept a lambda as callback, which may be problematic.

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

Reply via email to