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/Frontend/CompilerInvocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Frontend/CompilerInvocation.cpp') diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 70c2fec6ce..d8abd5307e 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/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.2.3