r311886 - Avoid missing std error code in RefactoringActionRulesTest.cpp

Alex Lorenz via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 28 05:03:08 PDT 2017


Author: arphaman
Date: Mon Aug 28 05:03:08 2017
New Revision: 311886

URL: http://llvm.org/viewvc/llvm-project?rev=311886&view=rev
Log:
Avoid missing std error code in RefactoringActionRulesTest.cpp

This should fix this bot:
http://bb.pgr.jp/builders/i686-mingw32-RA-on-linux

Modified:
    cfe/trunk/unittests/Tooling/RefactoringActionRulesTest.cpp

Modified: cfe/trunk/unittests/Tooling/RefactoringActionRulesTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/RefactoringActionRulesTest.cpp?rev=311886&r1=311885&r2=311886&view=diff
==============================================================================
--- cfe/trunk/unittests/Tooling/RefactoringActionRulesTest.cpp (original)
+++ cfe/trunk/unittests/Tooling/RefactoringActionRulesTest.cpp Mon Aug 28 05:03:08 2017
@@ -111,7 +111,7 @@ TEST_F(RefactoringActionRulesTest, Retur
   Expected<AtomicChanges> (*Func)(selection::SourceSelectionRange) =
       [](selection::SourceSelectionRange) -> Expected<AtomicChanges> {
     return llvm::make_error<llvm::StringError>(
-        "Error", std::make_error_code(std::errc::bad_message));
+        "Error", llvm::make_error_code(llvm::errc::invalid_argument));
   };
   auto Rule = createRefactoringRule(
       Func, requiredSelection(
@@ -139,7 +139,7 @@ TEST_F(RefactoringActionRulesTest, Retur
     Expected<Optional<int>>
     evaluateSelection(selection::SourceSelectionRange Selection) const {
       return llvm::make_error<llvm::StringError>(
-          "bad selection", std::make_error_code(std::errc::bad_message));
+          "bad selection", llvm::make_error_code(llvm::errc::invalid_argument));
     }
   };
   auto Rule = createRefactoringRule(




More information about the cfe-commits mailing list