Skip to content

Commit 3950bf2

Browse files
committed
Keep calls to checkImplementationStatus
1 parent 3385a4a commit 3950bf2

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
@@ -3112,6 +3112,9 @@ static llvm::omp::Directive convertCancellationConstructType(
31123112
static LogicalResult
31133113
convertOmpCancel(omp::CancelOp op, llvm::IRBuilderBase &builder,
31143114
LLVM::ModuleTranslation &moduleTranslation) {
3115+
if (failed(checkImplementationStatus(*op.getOperation())))
3116+
return failure();
3117+
31153118
llvm::OpenMPIRBuilder::LocationDescription ompLoc(builder);
31163119
llvm::OpenMPIRBuilder *ompBuilder = moduleTranslation.getOpenMPBuilder();
31173120

@@ -3137,6 +3140,9 @@ static LogicalResult
31373140
convertOmpCancellationPoint(omp::CancellationPointOp op,
31383141
llvm::IRBuilderBase &builder,
31393142
LLVM::ModuleTranslation &moduleTranslation) {
3143+
if (failed(checkImplementationStatus(*op.getOperation())))
3144+
return failure();
3145+
31403146
llvm::OpenMPIRBuilder::LocationDescription ompLoc(builder);
31413147
llvm::OpenMPIRBuilder *ompBuilder = moduleTranslation.getOpenMPBuilder();
31423148

0 commit comments

Comments
 (0)