[flang-commits] [flang] [flang][rfc] Add represention of volatile references (PR #132486)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Mon Mar 31 20:00:09 PDT 2025
================
@@ -1787,6 +1840,10 @@ llvm::LogicalResult fir::EmboxOp::verify() {
return emitOpError("slice must not be provided for a scalar");
if (getSourceBox() && !mlir::isa<fir::ClassType>(getResult().getType()))
return emitOpError("source_box must be used with fir.class result type");
+ // if (fir::isa_volatile_type(getMemref().getType()) !=
+ // fir::isa_volatile_type(getResult().getType()))
+ // return emitOpError("input and output types must have the same
+ // volatility");
----------------
vzakhari wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/132486
More information about the flang-commits
mailing list