[PATCH] D106784: [ADT] function_ref captures function pointers by value
Chandler Carruth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 26 15:01:26 PDT 2021
chandlerc added a comment.
An alternative would be to delete this overload and insist callers pass a lambda that itself calls the desired function. This makes the user of `function_ref` more verbose, but it avoids having two dynamic dispatches (I think).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106784/new/
https://reviews.llvm.org/D106784
More information about the llvm-commits
mailing list