From 1e2e58f753d26b0323ffae95abd53f0203ff201a Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Thu, 22 May 2014 22:06:08 +0000 Subject: [PATCH] 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 --- lib/Format/Format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0