From 2d15858e406fa13fe5e1444aa49b5567cd18fcea Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 16 Nov 2016 01:01:22 +0000 Subject: Revert "[OPENMP] Fixed codegen for 'omp cancel' construct." Summary: r286944 introduced bugs detected by ASAN as use-after-return. r287025 have not fixed them completely. This reverts commit r286944 and r287025. Reviewers: ABataev Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26720 llvm-svn: 287069 --- clang/test/OpenMP/cancel_codegen.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'clang/test/OpenMP/cancel_codegen.cpp') diff --git a/clang/test/OpenMP/cancel_codegen.cpp b/clang/test/OpenMP/cancel_codegen.cpp index 768d2c0bd7a..fb0a4dd54a2 100644 --- a/clang/test/OpenMP/cancel_codegen.cpp +++ b/clang/test/OpenMP/cancel_codegen.cpp @@ -90,11 +90,9 @@ for (int i = 0; i < argc; ++i) { } } // CHECK: call void (%ident_t*, i32, void (i32*, i32*, ...)*, ...) @__kmpc_fork_call( -int r = 0; -#pragma omp parallel for reduction(+:r) +#pragma omp parallel for for (int i = 0; i < argc; ++i) { #pragma omp cancel for - r += i; } // CHECK: call void (%ident_t*, i32, void (i32*, i32*, ...)*, ...) @__kmpc_fork_call( return argc; @@ -165,9 +163,6 @@ for (int i = 0; i < argc; ++i) { // CHECK: [[CONTINUE]] // CHECK: br label // CHECK: call void @__kmpc_for_static_fini( -// CHECK: call i32 @__kmpc_reduce_nowait( -// CHECK: call void @__kmpc_end_reduce_nowait( -// CHECK: call void @__kmpc_for_static_fini( // CHECK: ret void #endif -- cgit v1.2.3