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

This reverts commit 4cae6228d129d4c4dfb156c043977bb6b5690031.

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 667a8e234b
commit dc3a1be2c9
4 changed files with 6 additions and 26 deletions
+3 -1
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);