summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/critical_codegen.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-08-16 14:01:00 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-08-16 14:01:00 +0000
commitaee18557f7b2c9b446ffd8718a9938d8c8069526 (patch)
treeb57d6759279ee5804282812dbb6adcea6dd75900 /clang/test/OpenMP/critical_codegen.cpp
parentff64aa514b707cb42013f9389bac7535c7d2cef4 (diff)
downloadbcm5719-llvm-aee18557f7b2c9b446ffd8718a9938d8c8069526.tar.gz
bcm5719-llvm-aee18557f7b2c9b446ffd8718a9938d8c8069526.zip
[OPRNMP] Fix for PR33445: ICE: OpenMP target containing ordered for.
If exceptions are enabled, there may be a problem with the codegen of the finalization functions from OpenMP runtime. It happens because of the problem with the getting of thread identifier value. Patch tries to fix it by using the result of the call of function __kmpc_global_thread_num() rather than loading of value of outlined function parameter. llvm-svn: 311007
Diffstat (limited to 'clang/test/OpenMP/critical_codegen.cpp')
-rw-r--r--clang/test/OpenMP/critical_codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/critical_codegen.cpp b/clang/test/OpenMP/critical_codegen.cpp
index f4e449a2237..964c91f45ae 100644
--- a/clang/test/OpenMP/critical_codegen.cpp
+++ b/clang/test/OpenMP/critical_codegen.cpp
@@ -78,7 +78,7 @@ void critical_ref(S &s) {
void parallel_critical() {
#pragma omp parallel
#pragma omp critical
- // TERM_DEBUG-NOT: __kmpc_global_thread_num
+ // TERM_DEBUG: __kmpc_global_thread_num
// TERM_DEBUG: call void @__kmpc_critical({{.+}}), !dbg [[DBG_LOC_START:![0-9]+]]
// TERM_DEBUG: invoke void {{.*}}foo{{.*}}()
// TERM_DEBUG: unwind label %[[TERM_LPAD:.+]],
OpenPOWER on IntegriCloud