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
2020-10-07 16:37:53 +02:00
parent ff6e4441b9
commit b953a01b2c
4 changed files with 21 additions and 6 deletions

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);