forked from OSchip/llvm-project
Use error_code::success() instead of make_error_code(llvm::errc::success).
llvm-svn: 209477
This commit is contained in:
parent
958a59b777
commit
0a0d6b4bb1
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue