diff options
author | Alex Lorenz <arphaman@gmail.com> | 2017-08-28 12:03:08 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2017-08-28 12:03:08 +0000 |
commit | 595c644f8467583d23922114f32faefa513febaa (patch) | |
tree | afc988a13cd9999caea80b437f51020a0c8ea107 /clang/unittests/Tooling/RefactoringActionRulesTest.cpp | |
parent | e983e6b1c58319921dd67d8e334ce79a0e3c5aa7 (diff) | |
download | bcm5719-llvm-595c644f8467583d23922114f32faefa513febaa.tar.gz bcm5719-llvm-595c644f8467583d23922114f32faefa513febaa.zip |
Avoid missing std error code in RefactoringActionRulesTest.cpp
This should fix this bot:
http://bb.pgr.jp/builders/i686-mingw32-RA-on-linux
llvm-svn: 311886
Diffstat (limited to 'clang/unittests/Tooling/RefactoringActionRulesTest.cpp')
-rw-r--r-- | clang/unittests/Tooling/RefactoringActionRulesTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Tooling/RefactoringActionRulesTest.cpp b/clang/unittests/Tooling/RefactoringActionRulesTest.cpp index 68aa2f80374..ce1143d331b 100644 --- a/clang/unittests/Tooling/RefactoringActionRulesTest.cpp +++ b/clang/unittests/Tooling/RefactoringActionRulesTest.cpp @@ -111,7 +111,7 @@ TEST_F(RefactoringActionRulesTest, ReturnError) { 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, ReturnInitiationDiagnostic) { 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( |