diff options
| author | Sam McCall <sam.mccall@gmail.com> | 2020-10-07 16:36:38 +0200 |
|---|---|---|
| committer | Sam McCall <sam.mccall@gmail.com> | 2020-10-07 16:37:13 +0200 |
| commit | 281703e67ffaee8e26efef86e0df3e145477f4cb (patch) | |
| tree | 37ab6fa8ee2c3823be759cc5d0f4d3b05435c06c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | fbce456fad35efa857b9dea2cff3a938835de44d (diff) | |
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
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
| -rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 15ca3a54da2d..4d69dd7dcc5d 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -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); |
