Use error_code::success() instead of make_error_code(llvm::errc::success).
authorAlexander Kornienko <alexfh@google.com>
Thu, 22 May 2014 22:06:08 +0000 (22:06 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 22 May 2014 22:06:08 +0000 (22:06 +0000)
llvm-svn: 209477

clang/lib/Format/Format.cpp

index 49c9a4a..7d0e102 100644 (file)
@@ -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);