summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/parallel_for_codegen.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-11-02 14:25:34 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-11-02 14:25:34 +0000
commit0e1b45897ec9ac5de93a578edfe55021eb64bf5c (patch)
tree7ce91106f740ad548aa05a386acfd900d9778f2e /clang/test/OpenMP/parallel_for_codegen.cpp
parent96087f38254ac1a655ceaea816937323b13e0dcf (diff)
downloadbcm5719-llvm-0e1b45897ec9ac5de93a578edfe55021eb64bf5c.tar.gz
bcm5719-llvm-0e1b45897ec9ac5de93a578edfe55021eb64bf5c.zip
[OPENMP] Fix PR35156: Get correct thread id with windows exceptions.
If the thread id is requested in windows mode within funclets, we may generate incorrect function call that could lead to broken codegen. llvm-svn: 317208
Diffstat (limited to 'clang/test/OpenMP/parallel_for_codegen.cpp')
-rw-r--r--clang/test/OpenMP/parallel_for_codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/parallel_for_codegen.cpp b/clang/test/OpenMP/parallel_for_codegen.cpp
index bc04532bd17..1773619bce2 100644
--- a/clang/test/OpenMP/parallel_for_codegen.cpp
+++ b/clang/test/OpenMP/parallel_for_codegen.cpp
@@ -348,7 +348,7 @@ int foo() {return 0;};
void parallel_for(float *a, int n) {
float arr[n];
#pragma omp parallel for schedule(static, 5) private(arr)
- // TERM_DEBUG: __kmpc_global_thread_num
+ // TERM_DEBUG-NOT: __kmpc_global_thread_num
// TERM_DEBUG: call void @__kmpc_for_static_init_4u({{.+}}), !dbg [[DBG_LOC_START:![0-9]+]]
// TERM_DEBUG: invoke i32 {{.*}}foo{{.*}}()
// TERM_DEBUG: unwind label %[[TERM_LPAD:.+]],
OpenPOWER on IntegriCloud