summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-05-22 22:06:08 +0000
committerAlexander Kornienko <alexfh@google.com>2014-05-22 22:06:08 +0000
commit0a0d6b4bb123e833df89cbb287e467f811324882 (patch)
tree0389081289c857309aca5bf0ae9683cd6c90cce5 /clang/lib/Format
parent958a59b77750702a4cda83c1dcf3efc26747d391 (diff)
downloadbcm5719-llvm-0a0d6b4bb123e833df89cbb287e467f811324882.tar.gz
bcm5719-llvm-0a0d6b4bb123e833df89cbb287e467f811324882.zip
Use error_code::success() instead of make_error_code(llvm::errc::success).
llvm-svn: 209477
Diffstat (limited to 'clang/lib/Format')
-rw-r--r--clang/lib/Format/Format.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 49c9a4a2f2e..7d0e102d630 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);
OpenPOWER on IntegriCloud