From a7025137ce0d1583b21c595b751a421f7bd02fcb Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 31 May 2014 03:20:52 +0000 Subject: 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 --- lib/Serialization/GlobalModuleIndex.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/Serialization/GlobalModuleIndex.cpp') 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 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. -- cgit v1.2.3