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 8ad429c commit 54a16b9Copy full SHA for 54a16b9
flang/lib/Optimizer/Transforms/SetRuntimeCallAttributes.cpp
@@ -60,11 +60,11 @@ static mlir::LLVM::MemoryEffectsAttr getGenericMemoryAttr(fir::CallOp callOp) {
60
for (auto arg : callOp.getArgOperands()) {
61
mlir::Type argType = arg.getType();
62
if (mlir::isa<fir::BaseBoxType>(argType)) {
63
- // If it is a null box, then this particular call
+ // If it is a null/absent box, then this particular call
64
// cannot access memory indirectly through the box's
65
// base_addr.
66
auto def = arg.getDefiningOp();
67
- if (!def || !mlir::isa<fir::ZeroOp>(def)) {
+ if (!mlir::isa_and_nonnull<fir::ZeroOp, fir::AbsentOp>(def)) {
68
maybeIndirectAccess = true;
69
break;
70
}
0 commit comments