Skip to content

Commit 0f5b141

Browse files
Remove assert
1 parent 1689860 commit 0f5b141

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

flang/lib/Lower/OpenMP/DataSharingProcessor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ void DataSharingProcessor::insertLastPrivateCompare(mlir::Operation *op) {
307307
auto ifOp = firOpBuilder.create<fir::IfOp>(loc, cmpOp, /*else*/ false);
308308
firOpBuilder.setInsertionPointToStart(&ifOp.getThenRegion().front());
309309
for (auto [v, loopIV] : llvm::zip_equal(vs, loopIVs)) {
310-
assert(loopIV && "loopIV was not set");
311310
hlfir::Entity loopIVEntity{loopIV};
312311
loopIVEntity =
313312
hlfir::derefPointersAndAllocatables(loc, firOpBuilder, loopIVEntity);

0 commit comments

Comments
 (0)