summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/RefactoringActionRulesTest.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-08-28 12:03:08 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-08-28 12:03:08 +0000
commit595c644f8467583d23922114f32faefa513febaa (patch)
treeafc988a13cd9999caea80b437f51020a0c8ea107 /clang/unittests/Tooling/RefactoringActionRulesTest.cpp
parente983e6b1c58319921dd67d8e334ce79a0e3c5aa7 (diff)
downloadbcm5719-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.cpp4
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(
OpenPOWER on IntegriCloud