diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-08-16 14:01:00 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-08-16 14:01:00 +0000 |
commit | aee18557f7b2c9b446ffd8718a9938d8c8069526 (patch) | |
tree | b57d6759279ee5804282812dbb6adcea6dd75900 /clang/test/OpenMP/single_codegen.cpp | |
parent | ff64aa514b707cb42013f9389bac7535c7d2cef4 (diff) | |
download | bcm5719-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/single_codegen.cpp')
-rw-r--r-- | clang/test/OpenMP/single_codegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/single_codegen.cpp b/clang/test/OpenMP/single_codegen.cpp index 892e1603241..4feb3bdac3e 100644 --- a/clang/test/OpenMP/single_codegen.cpp +++ b/clang/test/OpenMP/single_codegen.cpp @@ -190,7 +190,7 @@ int main() { void parallel_single() { #pragma omp parallel #pragma omp single - // TERM_DEBUG-NOT: __kmpc_global_thread_num + // TERM_DEBUG: __kmpc_global_thread_num // TERM_DEBUG: call i32 @__kmpc_single({{.+}}), !dbg [[DBG_LOC_START:![0-9]+]] // TERM_DEBUG: invoke void {{.*}}foo{{.*}}() // TERM_DEBUG: unwind label %[[TERM_LPAD:.+]], |