Reapply [ADT] function_ref's constructor is unavailable if the argument is not callable.

This reverts commit 281703e67f.

GCC 5.4 bugs are worked around by avoiding use of variable templates.

Differential Revision: https://reviews.llvm.org/D88977
This commit is contained in:
Sam McCall committed 2020-10-07 18:31:12 +02:00
1 parent ff6e4441b9
commit b953a01b2c
4 files changed
+21 -6

No files matched your search

+1 -3
View File
@@ -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);