Use error_code::success() instead of make_error_code(llvm::errc::success).

llvm-svn: 209477
This commit is contained in:
Alexander Kornienko 2014-05-22 22:06:08 +00:00
parent 958a59b777
commit 0a0d6b4bb1
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ llvm::error_code parseConfiguration(StringRef Text, FormatStyle *Style) {
Styles[i].Language == FormatStyle::LK_None) { Styles[i].Language == FormatStyle::LK_None) {
*Style = Styles[i]; *Style = Styles[i];
Style->Language = Language; 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); return llvm::make_error_code(llvm::errc::not_supported);