diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2019-08-20 17:50:13 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-08-20 17:50:13 +0000 |
| commit | c4299553f05ede6d6eab0081707f7e71ebea8c4e (patch) | |
| tree | bda2f07b2fd6beaa2990d51ad95aa5cae2f82b05 | |
| parent | 4b7fc85c0bb76351d7ad848b52bdf955f0c9789c (diff) | |
| download | bcm5719-llvm-c4299553f05ede6d6eab0081707f7e71ebea8c4e.tar.gz bcm5719-llvm-c4299553f05ede6d6eab0081707f7e71ebea8c4e.zip | |
Fix name of the error message, NFC.
llvm-svn: 369418
| -rw-r--r-- | clang/include/clang/Basic/DiagnosticSemaKinds.td | 2 | ||||
| -rw-r--r-- | clang/lib/Sema/SemaOpenMP.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index e704cb0b9b6..d99733258ee 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -9329,7 +9329,7 @@ def err_omp_wrong_dependency_iterator_type : Error< "expected an integer or a pointer type of the outer loop counter '%0' for non-rectangular nests">; def err_omp_unsupported_type : Error < "host requires %0 bit size %1 type support, but device '%2' does not support it">; -def omp_lambda_capture_in_declare_target_not_to : Error< +def err_omp_lambda_capture_in_declare_target_not_to : Error< "variable captured in declare target region must appear in a to clause">; } // end of OpenMP category diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index bba116e4816..6d7b542ddba 100644 --- a/clang/lib/Sema/SemaOpenMP.cpp +++ b/clang/lib/Sema/SemaOpenMP.cpp @@ -15365,7 +15365,7 @@ static void checkDeclInTargetContext(SourceLocation SL, SourceRange SR, // directive, all variables that are captured by the lambda // expression must also appear in a to clause. SemaRef.Diag(VD->getLocation(), - diag::omp_lambda_capture_in_declare_target_not_to); + diag::err_omp_lambda_capture_in_declare_target_not_to); SemaRef.Diag(SL, diag::note_var_explicitly_captured_here) << VD << 0 << SR; return; |

