From cb82dfb11c95e671dbacd66a066114e7e88678ac Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 31 May 2014 01:26:30 +0000 Subject: Use error_code() instead of error_code::succes() There is no std::error_code::success, so this removes much of the noise in transitioning to std::error_code. llvm-svn: 209949 --- clang/lib/Basic/VirtualFileSystem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/Basic') diff --git a/clang/lib/Basic/VirtualFileSystem.cpp b/clang/lib/Basic/VirtualFileSystem.cpp index a469c9abc39..1892839e2b1 100644 --- a/clang/lib/Basic/VirtualFileSystem.cpp +++ b/clang/lib/Basic/VirtualFileSystem.cpp @@ -142,7 +142,7 @@ error_code RealFile::close() { if (::close(FD)) return error_code(errno, system_category()); FD = -1; - return error_code::success(); + return error_code(); } void RealFile::setName(StringRef Name) { @@ -175,7 +175,7 @@ error_code RealFileSystem::openFileForRead(const Twine &Name, return EC; Result.reset(new RealFile(FD)); Result->setName(Name.str()); - return error_code::success(); + return error_code(); } IntrusiveRefCntPtr vfs::getRealFileSystem() { @@ -829,7 +829,7 @@ error_code VFSFromYAML::openFileForRead(const Twine &Path, if (!F->useExternalName(UseExternalNames)) Result->setName(Path.str()); - return error_code::success(); + return error_code(); } IntrusiveRefCntPtr -- cgit v1.2.3