There is no std::errc:success, remove the llvm one.

llvm-svn: 209959
This commit is contained in:
Rafael Espindola
2014-05-31 03:20:52 +00:00
parent a72f21d195
commit 3ae0620a45
5 changed files with 55 additions and 57 deletions

View File

@@ -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.