summaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-31 03:20:52 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-31 03:20:52 +0000
commita7025137ce0d1583b21c595b751a421f7bd02fcb (patch)
tree9e5ecd0c067bdced4a1cad81a28d9c1a1c675725 /lib/Frontend/CompilerInvocation.cpp
parent68a83539412a280f0d071e30de69f2a5f7320624 (diff)
downloadclang-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.cpp2
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>();
}