]> granicus.if.org Git - clang/commitdiff
[OPENMP] Fix syntactic errors in error messages.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 16 Jul 2018 18:12:18 +0000 (18:12 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 16 Jul 2018 18:12:18 +0000 (18:12 +0000)
Fixed spelling of the offloading error messages.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337196 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGOpenMPRuntime.cpp
test/OpenMP/target_messages.cpp

index 1e37c894eeaf7201573ebc3174f648ce5368996d..d34881604043188f3793c43bb1f0c7e01faafad6 100644 (file)
@@ -3970,7 +3970,7 @@ void CGOpenMPRuntime::createOffloadEntriesAndInfoMetadata() {
       if (!CE->getID() || !CE->getAddress()) {
         unsigned DiagID = CGM.getDiags().getCustomDiagID(
             DiagnosticsEngine::Error,
-            "Offloading entry for target region is incorect: either the "
+            "Offloading entry for target region is incorrect: either the "
             "address or the ID is invalid.");
         CGM.getDiags().Report(DiagID);
         continue;
@@ -3983,7 +3983,7 @@ void CGOpenMPRuntime::createOffloadEntriesAndInfoMetadata() {
       if (!CE->getAddress()) {
         unsigned DiagID = CGM.getDiags().getCustomDiagID(
             DiagnosticsEngine::Error,
-            "Offloading entry for declare target varible is inccorect: the "
+            "Offloading entry for declare target variable is incorrect: the "
             "address is invalid.");
         CGM.getDiags().Report(DiagID);
         continue;
index 52dbe4900d609f22c46133762c8469ed37f1a911..c9dc80aca44c8b3056916c04061fbc125ad8ee2c 100644 (file)
@@ -14,7 +14,7 @@
 
 // RUN: %clang_cc1 -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm-bc %s -o %t-ppc-host.bc -DREGION_HOST
 // RUN: not %clang_cc1 -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -fopenmp-is-device -fopenmp-host-ir-file-path %t-ppc-host.bc -o - -DREGION_DEVICE 2>&1 | FileCheck %s --check-prefix NO-REGION
-// NO-REGION: Offloading entry for target region is incorect: either the address or the ID is invalid.
+// NO-REGION: Offloading entry for target region is incorrect: either the address or the ID is invalid.
 
 #if defined(REGION_HOST) || defined(REGION_DEVICE)
 void foo() {