================ @@ -55,15 +55,19 @@ class MapsForPrivatizedSymbolsPass std::underlying_type_t<llvm::omp::OpenMPOffloadMappingFlags>>( llvm::omp::OpenMPOffloadMappingFlags::OMP_MAP_TO); Operation *definingOp = var.getDefiningOp(); - auto declOp = llvm::dyn_cast_or_null<hlfir::DeclareOp>(definingOp); - assert(declOp && - "Expected defining Op of privatized var to be hlfir.declare"); + assert(definingOp && + "Privatizing a block argument without any hlfir.declare"); ---------------- tblah wrote:
I was nervous to make any functional change to the target stuff because I don't know how to test it. The previous implementation also wouldn't have worked for block arguments. I can fix this if somebody at AMD is willing to test `omp target` for me? https://github.com/llvm/llvm-project/pull/124019 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits