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/Support/FileOutputBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/FileOutputBuffer.cpp') diff --git a/llvm/lib/Support/FileOutputBuffer.cpp b/llvm/lib/Support/FileOutputBuffer.cpp index 49311c29d8bc..5f74d00c6b5d 100644 --- a/llvm/lib/Support/FileOutputBuffer.cpp +++ b/llvm/lib/Support/FileOutputBuffer.cpp @@ -81,7 +81,7 @@ error_code FileOutputBuffer::create(StringRef FilePath, if (Result) MappedFile.release(); - return error_code::success(); + return error_code(); } error_code FileOutputBuffer::commit(int64_t NewSmallerSize) { -- cgit v1.2.3