Skip to content

Commit 4212948

Browse files
committed
Keep calls to checkImplementationStatus
1 parent cbd71ce commit 4212948

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3100,6 +3100,9 @@ static llvm::omp::Directive convertCancellationConstructType(
31003100
static LogicalResult
31013101
convertOmpCancel(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
31253128
convertOmpCancellationPoint(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

0 commit comments

Comments
 (0)