Skip to content

Commit 49287c2

Browse files
committed
change return
1 parent ed8bed6 commit 49287c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Optimizer/OpenACC/Support/FIROpenACCTypeInterfaces.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ getBaseRef(mlir::TypedValue<mlir::acc::PointerLikeType> varPtr) {
359359
// to the declared memref.
360360
if (auto storage = op.getStorage())
361361
return storage;
362-
return op.getMemref();
362+
return mlir::Value(varPtr);
363363
})
364364
.Case<hlfir::DesignateOp>([&](auto op) {
365365
// Get the base object.

0 commit comments

Comments
 (0)