[flang-commits] [flang] [flang][OpenMP] fix predetermined privatization inside section (PR #138159)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Wed May 7 07:01:03 PDT 2025
================
@@ -1240,7 +1247,7 @@ static void createBodyOfOp(mlir::Operation &op, const OpWithBodyGenInfo &info,
// loop (this may not make sense in production code, but a user could
// write that and we should handle it).
firOpBuilder.setInsertionPoint(term);
- if (privatize) {
+ if (privatize && !info.skipDspStep2) {
----------------
tblah wrote:
Thanks that was a good idea.
https://github.com/llvm/llvm-project/pull/138159
More information about the flang-commits
mailing list