diff options
| author | Ilya Biryukov <ibiryukov@google.com> | 2019-09-18 08:47:09 +0000 |
|---|---|---|
| committer | Ilya Biryukov <ibiryukov@google.com> | 2019-09-18 08:47:09 +0000 |
| commit | 377aaa2ede8ce0bc73a85fb2f3b29cd07d79535c (patch) | |
| tree | 7b81e016ff4f4fd355ba1afb9348e3afe7c3ba33 /llvm/lib/Support | |
| parent | edd5dfcd890dad921bb0c0edb1551597bd6124d7 (diff) | |
| download | bcm5719-llvm-377aaa2ede8ce0bc73a85fb2f3b29cd07d79535c.tar.gz bcm5719-llvm-377aaa2ede8ce0bc73a85fb2f3b29cd07d79535c.zip | |
Revert "r372201: [Support] Replace function with function_ref in writeFileAtomically. NFC"
function_ref causes calls to the function to be ambiguous, breaking
compilation.
Reverting for now.
llvm-svn: 372202
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/FileUtilities.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/FileUtilities.cpp b/llvm/lib/Support/FileUtilities.cpp index 3d862f5f09e..d11fbb54dc0 100644 --- a/llvm/lib/Support/FileUtilities.cpp +++ b/llvm/lib/Support/FileUtilities.cpp @@ -296,7 +296,7 @@ llvm::Error llvm::writeFileAtomically(StringRef TempPathModel, llvm::Error llvm::writeFileAtomically( StringRef TempPathModel, StringRef FinalPath, - llvm::function_ref<llvm::Error(llvm::raw_ostream &)> Writer) { + std::function<llvm::Error(llvm::raw_ostream &)> Writer) { SmallString<128> GeneratedUniqPath; int TempFD; if (sys::fs::createUniqueFile(TempPathModel.str(), TempFD, |

