]> granicus.if.org Git - clang/commitdiff
Fix name of the error message, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 20 Aug 2019 17:50:13 +0000 (17:50 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 20 Aug 2019 17:50:13 +0000 (17:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369418 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaOpenMP.cpp

index e704cb0b9b67c670f7a0b0f5f49693a7f409566e..d99733258eebe6780610e17ce74ab5b9bc74795a 100644 (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
 
index bba116e48169078c534d92be8e8e0db8307c90a7..6d7b542ddba27b0d7748493add9da84e7c7cb528 100644 (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;