Fix name of the error message, NFC.

llvm-svn: 369418
This commit is contained in:
Alexey Bataev 2019-08-20 17:50:13 +00:00
parent 4b7fc85c0b
commit c4299553f0
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;