From e754b18f5e10155673ceff9af9a34b473a802764 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Wed, 9 Aug 2017 19:38:53 +0000 Subject: [OPENMP] Emit non-debug version of outlined functions with original name. If the host code is compiled with the debug info, while the target without, there is a problem that the compiler is unable to find the debug wrapper. Patch fixes this problem by emitting special name for the debug version of the code. llvm-svn: 310511 --- clang/test/OpenMP/parallel_for_simd_codegen.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/test/OpenMP/parallel_for_simd_codegen.cpp') diff --git a/clang/test/OpenMP/parallel_for_simd_codegen.cpp b/clang/test/OpenMP/parallel_for_simd_codegen.cpp index 06d96353ee9..369ea17844e 100644 --- a/clang/test/OpenMP/parallel_for_simd_codegen.cpp +++ b/clang/test/OpenMP/parallel_for_simd_codegen.cpp @@ -114,6 +114,7 @@ void simple(float *a, float *b, float *c, float *d) { int lin = 12; #pragma omp parallel for simd linear(lin : get_val()), linear(g_ptr) +// CHECK: alloca i32, // Init linear private var. // CHECK: [[LIN_VAR:%.+]] = load i32*, i32** % // CHECK: [[LIN_LOAD:%.+]] = load i32, i32* [[LIN_VAR]] -- cgit v1.2.3