Author: abataev Date: Mon Jul 16 11:12:18 2018 New Revision: 337196 URL: http://llvm.org/viewvc/llvm-project?rev=337196&view=rev Log: [OPENMP] Fix syntactic errors in error messages.
Fixed spelling of the offloading error messages. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp cfe/trunk/test/OpenMP/target_messages.cpp Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp?rev=337196&r1=337195&r2=337196&view=diff ============================================================================== --- cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp (original) +++ cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp Mon Jul 16 11:12:18 2018 @@ -3970,7 +3970,7 @@ void CGOpenMPRuntime::createOffloadEntri 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::createOffloadEntri 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; Modified: cfe/trunk/test/OpenMP/target_messages.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/OpenMP/target_messages.cpp?rev=337196&r1=337195&r2=337196&view=diff ============================================================================== --- cfe/trunk/test/OpenMP/target_messages.cpp (original) +++ cfe/trunk/test/OpenMP/target_messages.cpp Mon Jul 16 11:12:18 2018 @@ -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() { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits