Skip to content

Commit 80762f2

Browse files
committed
[OpenMP][mlir] Fix return for isHostDeviceOp for omp.target_allocmem and omp.target_freemem
1 parent c79f6f8 commit 80762f2

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
@@ -6432,7 +6432,7 @@ static bool isHostDeviceOp(Operation *op) {
64326432

64336433
if (mlir::isa<omp::TargetAllocMemOp>(op) ||
64346434
mlir::isa<omp::TargetFreeMemOp>(op))
6435-
return true;
6435+
return false;
64366436

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

0 commit comments

Comments
 (0)