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 @@ -3112,6 +3112,9 @@ static llvm::omp::Directive convertCancellationConstructType(
3112
3112
static LogicalResult
3113
3113
convertOmpCancel (omp::CancelOp op, llvm::IRBuilderBase &builder,
3114
3114
LLVM::ModuleTranslation &moduleTranslation) {
3115
+ if (failed (checkImplementationStatus (*op.getOperation ())))
3116
+ return failure ();
3117
+
3115
3118
llvm::OpenMPIRBuilder::LocationDescription ompLoc (builder);
3116
3119
llvm::OpenMPIRBuilder *ompBuilder = moduleTranslation.getOpenMPBuilder ();
3117
3120
@@ -3137,6 +3140,9 @@ static LogicalResult
3137
3140
convertOmpCancellationPoint (omp::CancellationPointOp op,
3138
3141
llvm::IRBuilderBase &builder,
3139
3142
LLVM::ModuleTranslation &moduleTranslation) {
3143
+ if (failed (checkImplementationStatus (*op.getOperation ())))
3144
+ return failure ();
3145
+
3140
3146
llvm::OpenMPIRBuilder::LocationDescription ompLoc (builder);
3141
3147
llvm::OpenMPIRBuilder *ompBuilder = moduleTranslation.getOpenMPBuilder ();
3142
3148
You can’t perform that action at this time.
0 commit comments