File tree 1 file changed +6
-0
lines changed
mlir/lib/Target/LLVMIR/Dialect/OpenMP 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(
3100
3100
static LogicalResult
3101
3101
convertOmpCancel (omp::CancelOp op, llvm::IRBuilderBase &builder,
3102
3102
LLVM::ModuleTranslation &moduleTranslation) {
3103
+ if (failed (checkImplementationStatus (*op.getOperation ())))
3104
+ return failure ();
3105
+
3103
3106
llvm::OpenMPIRBuilder::LocationDescription ompLoc (builder);
3104
3107
llvm::OpenMPIRBuilder *ompBuilder = moduleTranslation.getOpenMPBuilder ();
3105
3108
@@ -3125,6 +3128,9 @@ static LogicalResult
3125
3128
convertOmpCancellationPoint (omp::CancellationPointOp op,
3126
3129
llvm::IRBuilderBase &builder,
3127
3130
LLVM::ModuleTranslation &moduleTranslation) {
3131
+ if (failed (checkImplementationStatus (*op.getOperation ())))
3132
+ return failure ();
3133
+
3128
3134
llvm::OpenMPIRBuilder::LocationDescription ompLoc (builder);
3129
3135
llvm::OpenMPIRBuilder *ompBuilder = moduleTranslation.getOpenMPBuilder ();
3130
3136
You can’t perform that action at this time.
0 commit comments