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

@@ -1971,7 +1971,7 @@ createVFSFromCompilerInvocation(const CompilerInvocation &CI,
// earlier vfs files are on the bottom
for (const std::string &File : CI.getHeaderSearchOpts().VFSOverlayFiles) {
std::unique_ptr<llvm::MemoryBuffer> Buffer;
if (llvm::errc::success != llvm::MemoryBuffer::getFile(File, Buffer)) {
if (llvm::MemoryBuffer::getFile(File, Buffer)) {
Diags.Report(diag::err_missing_vfs_overlay_file) << File;
return IntrusiveRefCntPtr<vfs::FileSystem>();
}