From 03bddfee473f0655025a4e31bc80b5654afb2dbd Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 31 May 2014 01:37:45 +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: 209952 --- llvm/lib/Object/Archive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Object/Archive.cpp') diff --git a/llvm/lib/Object/Archive.cpp b/llvm/lib/Object/Archive.cpp index 304ca475e13..77421c7da3c 100644 --- a/llvm/lib/Object/Archive.cpp +++ b/llvm/lib/Object/Archive.cpp @@ -179,7 +179,7 @@ error_code Archive::Child::getMemoryBuffer(std::unique_ptr &Result .toStringRef(Path) : Name, false)); - return error_code::success(); + return error_code(); } error_code Archive::Child::getAsBinary(std::unique_ptr &Result, -- cgit v1.2.3