aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2020-10-07 16:36:38 +0200
committerSam McCall <sam.mccall@gmail.com>2020-10-07 16:37:13 +0200
commit281703e67ffaee8e26efef86e0df3e145477f4cb (patch)
tree37ab6fa8ee2c3823be759cc5d0f4d3b05435c06c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentfbce456fad35efa857b9dea2cff3a938835de44d (diff)
downloadllvm-281703e67ffaee8e26efef86e0df3e145477f4cb.zip
llvm-281703e67ffaee8e26efef86e0df3e145477f4cb.tar.gz
llvm-281703e67ffaee8e26efef86e0df3e145477f4cb.tar.bz2
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.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 15ca3a5..4d69dd7 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);