From: Alexander Kornienko Date: Thu, 22 May 2014 22:06:08 +0000 (+0000) Subject: Use error_code::success() instead of make_error_code(llvm::errc::success). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e2e58f753d26b0323ffae95abd53f0203ff201a;p=clang Use error_code::success() instead of make_error_code(llvm::errc::success). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209477 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 49c9a4a2f2..7d0e102d63 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -482,7 +482,7 @@ llvm::error_code parseConfiguration(StringRef Text, FormatStyle *Style) { Styles[i].Language == FormatStyle::LK_None) { *Style = Styles[i]; Style->Language = Language; - return llvm::make_error_code(llvm::errc::success); + return llvm::error_code::success(); } } return llvm::make_error_code(llvm::errc::not_supported);