Skip to content

Commit 94bdf57

Browse files
authored
[OpenMP][mlir] Fix return for isHostDeviceOp for omp.target_allocmem and omp.target_freemem (llvm#4239)
2 parents 36a950e + 80762f2 commit 94bdf57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6436,7 +6436,7 @@ static bool isHostDeviceOp(Operation *op) {
64366436

64376437
if (mlir::isa<omp::TargetAllocMemOp>(op) ||
64386438
mlir::isa<omp::TargetFreeMemOp>(op))
6439-
return true;
6439+
return false;
64406440

64416441
if (auto parentFn = op->getParentOfType<LLVM::LLVMFuncOp>()) {
64426442
if (auto declareTargetIface =

0 commit comments

Comments
 (0)