diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-08-14 16:03:47 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-08-14 16:03:47 +0000 |
commit | 6e01dc1b840139e07b60759a5cfa42d99bef8a43 (patch) | |
tree | 1a1ee557d3a5170d5b109a5b70bdd8452a0f832f /clang/test/OpenMP/taskloop_reduction_codegen.cpp | |
parent | 92653865e605ef3d588bddcf1b595bb9d901180e (diff) | |
download | bcm5719-llvm-6e01dc1b840139e07b60759a5cfa42d99bef8a43.tar.gz bcm5719-llvm-6e01dc1b840139e07b60759a5cfa42d99bef8a43.zip |
[OPENMP][DEBUG] Fix for PR33676: Debug info for OpenMP region is broken.
After some changes in clang/LLVM debug info for task-based regions was
not generated at all. Patch fixes this problem.
llvm-svn: 310850
Diffstat (limited to 'clang/test/OpenMP/taskloop_reduction_codegen.cpp')
-rw-r--r-- | clang/test/OpenMP/taskloop_reduction_codegen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/OpenMP/taskloop_reduction_codegen.cpp b/clang/test/OpenMP/taskloop_reduction_codegen.cpp index af071ae8bd4..10cbf971633 100644 --- a/clang/test/OpenMP/taskloop_reduction_codegen.cpp +++ b/clang/test/OpenMP/taskloop_reduction_codegen.cpp @@ -143,7 +143,7 @@ sum = 0.0; // CHECK: [[DIV:%.*]] = sdiv i32 [[ADD11]], 1 // CHECK: [[SUB12:%.*]] = sub nsw i32 [[DIV]], 1 // CHECK: store i32 [[SUB12]], i32* [[DOTCAPTURE_EXPR_9]], -// CHECK: [[TMP65:%.*]] = call i8* @__kmpc_omp_task_alloc(%ident_t* %{{.+}}, i32 [[TMP0]], i32 1, i64 888, i64 72, i32 (i32, i8*)* bitcast (i32 (i32, %struct.kmp_task_t_with_privates*)* @{{.+}} to i32 (i32, i8*)*)) +// CHECK: [[TMP65:%.*]] = call i8* @__kmpc_omp_task_alloc(%ident_t* %{{.+}}, i32 [[TMP0]], i32 1, i64 888, i64 72, i32 (i32, i8*)* bitcast (i32 (i32, %struct.kmp_task_t_with_privates*)* @[[TASK:.+]] to i32 (i32, i8*)*)) // CHECK: call void @__kmpc_taskloop(%ident_t* %{{.+}}, i32 [[TMP0]], i8* [[TMP65]], i32 1, i64* %{{.+}}, i64* %{{.+}}, i64 %{{.+}}, i32 0, i32 0, i64 0, i8* null) // CHECK: call void @__kmpc_end_taskgroup(%ident_t* @@ -195,3 +195,4 @@ sum = 0.0; // CHECK: store float %{{.+}}, float* % // CHECK: ret void +// CHECK: distinct !DISubprogram(linkageName: "[[TASK]]", scope: ! |