We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a807149 commit 6ab91daCopy full SHA for 6ab91da
flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
@@ -126,15 +126,7 @@ void DataSharingProcessor::cloneSymbol(const semantics::Symbol *sym) {
126
assert(sb);
127
mlir::Value addr = sb.getAddr();
128
assert(addr);
129
- mlir::Type ty = addr.getType();
130
-
131
- // Unwrap type
132
- while (auto eleTy = fir::dyn_cast_ptrOrBoxEleTy(ty))
133
- ty = eleTy;
134
- // For arrays, use its element type
135
- if (auto seqTy = mlir::dyn_cast<fir::SequenceType>(ty))
136
- ty = seqTy.getEleTy();
137
- return fir::isRecordWithAllocatableMember(ty);
+ return hlfir::mayHaveAllocatableComponent(addr.getType());
138
};
139
140
if (needInitClone()) {
0 commit comments