From 3ae0620a45ea25a9e1062323a56a5717616b6bed 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. llvm-svn: 209959 --- clang/lib/Frontend/CompilerInvocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Frontend/CompilerInvocation.cpp') diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 70c2fec..d8abd53 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -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 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(); } -- cgit v1.1