aboutsummaryrefslogtreecommitdiff
path: root/clang/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
commit3ae0620a45ea25a9e1062323a56a5717616b6bed (patch)
treeb0e06c38fac597a9094b3bfc3227626a01d0d933 /clang/lib/Frontend/CompilerInvocation.cpp
parenta72f21d195c974723c66b5168c408f3b5582a45b (diff)
downloadllvm-3ae0620a45ea25a9e1062323a56a5717616b6bed.zip
llvm-3ae0620a45ea25a9e1062323a56a5717616b6bed.tar.gz
llvm-3ae0620a45ea25a9e1062323a56a5717616b6bed.tar.bz2
There is no std::errc:success, remove the llvm one.
llvm-svn: 209959
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
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<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>();
}