summaryrefslogtreecommitdiff
path: root/lib/Serialization/GlobalModuleIndex.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-31 03:20:52 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-31 03:20:52 +0000
commita7025137ce0d1583b21c595b751a421f7bd02fcb (patch)
tree9e5ecd0c067bdced4a1cad81a28d9c1a1c675725 /lib/Serialization/GlobalModuleIndex.cpp
parent68a83539412a280f0d071e30de69f2a5f7320624 (diff)
downloadclang-a7025137ce0d1583b21c595b751a421f7bd02fcb.tar.gz
clang-a7025137ce0d1583b21c595b751a421f7bd02fcb.tar.bz2
clang-a7025137ce0d1583b21c595b751a421f7bd02fcb.tar.xz
There is no std::errc:success, remove the llvm one.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/GlobalModuleIndex.cpp')
-rw-r--r--lib/Serialization/GlobalModuleIndex.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Serialization/GlobalModuleIndex.cpp b/lib/Serialization/GlobalModuleIndex.cpp
index 69c331b3ce..851695173f 100644
--- a/lib/Serialization/GlobalModuleIndex.cpp
+++ b/lib/Serialization/GlobalModuleIndex.cpp
@@ -240,8 +240,7 @@ GlobalModuleIndex::readIndex(StringRef Path) {
llvm::sys::path::append(IndexPath, IndexFileName);
std::unique_ptr<llvm::MemoryBuffer> Buffer;
- if (llvm::MemoryBuffer::getFile(IndexPath.c_str(), Buffer) !=
- llvm::errc::success)
+ if (llvm::MemoryBuffer::getFile(IndexPath.c_str(), Buffer))
return std::make_pair(nullptr, EC_NotFound);
/// \brief The bitstream reader from which we'll read the AST file.