Skip to content

Commit 4296542

Browse files
committed
Revert "[Flang][OpenMP] Add PointerAssociateScalar to Cray Pointer used in the DSA (llvm#133232)"
This reverts commit d317f02.
1 parent c8272c5 commit 4296542

File tree

4 files changed

+2
-244
lines changed

4 files changed

+2
-244
lines changed

flang/lib/Lower/ConvertExprToHLFIR.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,7 @@ class HlfirDesignatorBuilder {
278278
gen(const Fortran::evaluate::SymbolRef &symbolRef) {
279279
if (std::optional<fir::FortranVariableOpInterface> varDef =
280280
getSymMap().lookupVariableDefinition(symbolRef)) {
281-
if (symbolRef.get().GetUltimate().test(
282-
Fortran::semantics::Symbol::Flag::CrayPointee)) {
281+
if (symbolRef->test(Fortran::semantics::Symbol::Flag::CrayPointee)) {
283282
// The pointee is represented with a descriptor inheriting
284283
// the shape and type parameters of the pointee.
285284
// We have to update the base_addr to point to the current

flang/lib/Semantics/resolve-directives.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2276,7 +2276,7 @@ void OmpAttributeVisitor::Post(const parser::Name &name) {
22762276
// the scope of the parallel region, and not in this scope.
22772277
// TODO: check whether this should be caught in IsObjectWithDSA
22782278
!symbol->test(Symbol::Flag::OmpPrivate)) {
2279-
if (symbol->GetUltimate().test(Symbol::Flag::CrayPointee)) {
2279+
if (symbol->test(Symbol::Flag::CrayPointee)) {
22802280
std::string crayPtrName{
22812281
semantics::GetCrayPointer(*symbol).name().ToString()};
22822282
if (!IsObjectWithDSA(*currScope().FindSymbol(crayPtrName)))

flang/test/Lower/OpenMP/cray-pointers01.f90

Lines changed: 0 additions & 61 deletions
This file was deleted.

flang/test/Lower/OpenMP/cray-pointers02.f90

Lines changed: 0 additions & 180 deletions
This file was deleted.

0 commit comments

Comments
 (0)