File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
mlir/lib/Target/LLVMIR/Dialect/OpenMP Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -3100,6 +3100,9 @@ static llvm::omp::Directive convertCancellationConstructType(
31003100static LogicalResult
31013101convertOmpCancel (omp::CancelOp op, llvm::IRBuilderBase &builder,
31023102 LLVM::ModuleTranslation &moduleTranslation) {
3103+ if (failed (checkImplementationStatus (*op.getOperation ())))
3104+ return failure ();
3105+
31033106 llvm::OpenMPIRBuilder::LocationDescription ompLoc (builder);
31043107 llvm::OpenMPIRBuilder *ompBuilder = moduleTranslation.getOpenMPBuilder ();
31053108
@@ -3125,6 +3128,9 @@ static LogicalResult
31253128convertOmpCancellationPoint (omp::CancellationPointOp op,
31263129 llvm::IRBuilderBase &builder,
31273130 LLVM::ModuleTranslation &moduleTranslation) {
3131+ if (failed (checkImplementationStatus (*op.getOperation ())))
3132+ return failure ();
3133+
31283134 llvm::OpenMPIRBuilder::LocationDescription ompLoc (builder);
31293135 llvm::OpenMPIRBuilder *ompBuilder = moduleTranslation.getOpenMPBuilder ();
31303136
You can’t perform that action at this time.
0 commit comments