diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-31 03:20:52 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-31 03:20:52 +0000 |
| commit | a7025137ce0d1583b21c595b751a421f7bd02fcb (patch) | |
| tree | 9e5ecd0c067bdced4a1cad81a28d9c1a1c675725 /lib/Serialization/GlobalModuleIndex.cpp | |
| parent | 68a83539412a280f0d071e30de69f2a5f7320624 (diff) | |
| download | clang-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.cpp | 3 |
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. |
