================
@@ -5003,16 +5003,17 @@ static void 
createTargetLoopWorkshareCall(OpenMPIRBuilder *OMPBuilder,
   RealArgs.push_back(ConstantInt::get(TripCountTy, 0));
   if (LoopType == WorksharingLoopType::DistributeForStaticLoop) {
     RealArgs.push_back(ConstantInt::get(TripCountTy, 0));
-  }
-  RealArgs.push_back(ConstantInt::get(Builder.getInt8Ty(), 0));
+    RealArgs.push_back(ConstantInt::get(Builder.getInt8Ty(), NoLoop));
+  } else
+    RealArgs.push_back(ConstantInt::get(Builder.getInt8Ty(), 0));
----------------
DominikAdamski wrote:

Done

https://github.com/llvm/llvm-project/pull/155818
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to