From 0a0d6b4bb123e833df89cbb287e467f811324882 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). llvm-svn: 209477 --- clang/lib/Format/Format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 49c9a4a..7d0e102 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/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.7.4