]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209477 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index 49c9a4a2f2ef0ed9141bdccc075f9054da203194..7d0e102d630278857a23af598b7113fde8863273 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);