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

This reverts commit 4cae6228d1.

Breaks GCC build:
http://lab.llvm.org:8011/#/builders/8/builds/33/steps/6/logs/stdio
This commit is contained in:
Sam McCall
2020-10-07 16:36:38 +02:00
parent fbce456fad
commit 281703e67f
4 changed files with 6 additions and 26 deletions

View File

@@ -579,7 +579,9 @@ public:
/// \returns true if an error occurred.
Error parseBitcodeInto(
Module *M, bool ShouldLazyLoadMetadata = false, bool IsImporting = false,
DataLayoutCallbackTy DataLayoutCallback = [](StringRef) { return None; });
DataLayoutCallbackTy DataLayoutCallback = [](std::string) {
return None;
});
static uint64_t decodeSignRotatedValue(uint64_t V);