diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-31 03:20:52 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-31 03:20:52 +0000 |
| commit | a7025137ce0d1583b21c595b751a421f7bd02fcb (patch) | |
| tree | 9e5ecd0c067bdced4a1cad81a28d9c1a1c675725 /lib/Frontend/CompilerInvocation.cpp | |
| parent | 68a83539412a280f0d071e30de69f2a5f7320624 (diff) | |
| download | clang-a7025137ce0d1583b21c595b751a421f7bd02fcb.tar.gz clang-a7025137ce0d1583b21c595b751a421f7bd02fcb.tar.bz2 clang-a7025137ce0d1583b21c595b751a421f7bd02fcb.tar.xz | |
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
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
| -rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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>(); } |
