Skip to content

Commit b1b1bc1

Browse files
committed
Fix compliation error.
1 parent c46026c commit b1b1bc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ convertOmpParallel(omp::ParallelOp opInst, llvm::IRBuilderBase &builder,
11651165
// `inlineConvertOmpRegions` expects the insertion block to **not**
11661166
// contain a terminator.
11671167
auto &allocaTerminator = builder.GetInsertBlock()->back();
1168-
assert(lastInstr.isTerminator());
1168+
assert(allocaTerminator.isTerminator());
11691169
allocaTerminator.removeFromParent();
11701170

11711171
SmallVector<llvm::Value *, 1> yieldedValues;

0 commit comments

Comments
 (0)