[Openmp-commits] [clang] [openmp] [llvm] [clang-tools-extra] Fix Issue #76121 [OpenMP] [Flang] Program crashes at runtime (PR #76122)
chandan singh via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jan 11 02:12:11 PST 2024
https://github.com/chandankds updated https://github.com/llvm/llvm-project/pull/76122
>From 46b1085445209ac31600eccd863326b3d34b973e Mon Sep 17 00:00:00 2001
From: orequest <Osi.Request at amd.com>
Date: Wed, 20 Dec 2023 20:19:11 -0800
Subject: [PATCH] Fix Issue #76121 [OpenMP] [Flang] Program crashes at runtime
with Segmentation fault when OMP PARALLEL DO IF(.false.) is encountered
---
openmp/runtime/src/kmp_csupport.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/openmp/runtime/src/kmp_csupport.cpp b/openmp/runtime/src/kmp_csupport.cpp
index 9eeaeb88fb9ec7..91a48ad393d703 100644
--- a/openmp/runtime/src/kmp_csupport.cpp
+++ b/openmp/runtime/src/kmp_csupport.cpp
@@ -368,7 +368,7 @@ void __kmpc_fork_call_if(ident_t *loc, kmp_int32 argc, kmpc_micro microtask,
__kmp_invoke_microtask(VOLATILE_CAST(microtask_t) microtask, gtid,
/*npr=*/0,
/*argc=*/0,
- /*args=*/nullptr
+ /*args=*/&args
#if OMPT_SUPPORT
,
&exit_frame_ptr
More information about the Openmp-commits
mailing list