diff options
Diffstat (limited to 'lld/lib/Core')
-rw-r--r-- | lld/lib/Core/InputGraph.cpp | 2 | ||||
-rw-r--r-- | lld/lib/Core/PassManager.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/Core/InputGraph.cpp b/lld/lib/Core/InputGraph.cpp index abd3385ad6b..eee6faf691e 100644 --- a/lld/lib/Core/InputGraph.cpp +++ b/lld/lib/Core/InputGraph.cpp @@ -90,7 +90,7 @@ error_code FileNode::getBuffer(StringRef filePath) { if (error_code ec = MemoryBuffer::getFileOrSTDIN(filePath, mb)) return ec; _buffer = std::move(mb); - return error_code::success(); + return error_code(); } /// \brief Return the next file that need to be processed by the resolver. diff --git a/lld/lib/Core/PassManager.cpp b/lld/lib/Core/PassManager.cpp index c46146122a0..eca7ce171ab 100644 --- a/lld/lib/Core/PassManager.cpp +++ b/lld/lib/Core/PassManager.cpp @@ -18,6 +18,6 @@ namespace lld { error_code PassManager::runOnFile(std::unique_ptr<MutableFile> &mf) { for (std::unique_ptr<Pass> &pass : _passes) pass->perform(mf); - return error_code::success(); + return error_code(); } } // end namespace lld |