[flang-commits] [flang] [flang][hlfir] do not propagate polymorphic temporary as allocatables (PR #142609)

via flang-commits flang-commits at lists.llvm.org
Wed Jun 4 07:21:23 PDT 2025


================
@@ -1492,6 +1499,9 @@ bool fir::BaseBoxType::isPointer() const {
   return llvm::isa<fir::PointerType>(getEleTy());
 }
 
+bool BaseBoxType::isVolatile() const {
+  return fir::isa_volatile_type(*this);
+}
----------------
jeanPerier wrote:

```suggestion
bool BaseBoxType::isVolatile() const { return fir::isa_volatile_type(*this); }
```

https://github.com/llvm/llvm-project/pull/142609


More information about the flang-commits mailing list