mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 22:41:21 +00:00
[ADT] function_ref's constructor is unavailable if the argument is not callable.
This allows overload sets containing function_ref arguments to work correctly Otherwise they're ambiguous as anything "could be" converted to a function_ref. This matches proposed std::function_ref, absl::function_ref, etc. Differential Revision: https://reviews.llvm.org/D88901
This commit is contained in:
1 parent
149dc94c1d
commit
4cae6228d1
4 files changed
+26
-6
No files matched your search
@@ -579,9 +579,7 @@ public:
|
||||
/// \returns true if an error occurred.
|
||||
Error parseBitcodeInto(
|
||||
Module *M, bool ShouldLazyLoadMetadata = false, bool IsImporting = false,
|
||||
DataLayoutCallbackTy DataLayoutCallback = [](std::string) {
|
||||
return None;
|
||||
});
|
||||
DataLayoutCallbackTy DataLayoutCallback = [](StringRef) { return None; });
|
||||
|
||||
static uint64_t decodeSignRotatedValue(uint64_t V);
|
||||
|
||||
|
||||
Reference in new issue
Block a user