aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2021-02-16 17:58:34 +0100
committerSam McCall <sam.mccall@gmail.com>2021-02-17 10:36:07 +0100
commit9ebc837f555249759c538338ffdbf7463e1b6a77 (patch)
tree6b4052bfc314748cf533ef98c0b610186ca757e5 /llvm/lib/IR/Module.cpp
parent82b692e54698a3b2b874ea4f6e97c5337e8045d1 (diff)
downloadllvm-9ebc837f555249759c538338ffdbf7463e1b6a77.zip
llvm-9ebc837f555249759c538338ffdbf7463e1b6a77.tar.gz
llvm-9ebc837f555249759c538338ffdbf7463e1b6a77.tar.bz2
[ADT] Add SFINAE guards to unique_function constructor.
We can't construct a working unique_function from an object that's not callable with the right types, so don't allow deduction to succeed. This avoids some ambiguous conversion cases, e.g. allowing to overload on different unique_function types, and to conversion operators to unique_function. std::function and the any_invocable proposal have these. This was added to llvm::function_ref in D88901 and followups Differential Revision: https://reviews.llvm.org/D96794
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions