Skip to content

Commit f7ec756

Browse files
[MLIR][OpenMP] - Fix translation of omp.target when private variables need cleaning up
This is a simple fix that ensures that the InsertPoint is properly fixed up after we have translated the dealloc region of all privatized variables during translation of omp.target from MLIR to LLVMIR. Fix for #129202
1 parent 9a54c77 commit f7ec756

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4832,6 +4832,7 @@ convertOmpTarget(Operation &opInst, llvm::IRBuilderBase &builder,
48324832
"failed to inline `dealloc` region of `omp.private` "
48334833
"op in the target region");
48344834
}
4835+
return builder.saveIP();
48354836
}
48364837

48374838
return InsertPointTy(exitBlock.get(), exitBlock.get()->end());

0 commit comments

Comments
 (0)