[all-commits] [llvm/llvm-project] 057a2c: [flang] Don't fold STORAGE_SIZE() on polymorphic a...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Jan 27 11:59:06 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 057a2c239e801810fc28d3e87fc4e9cf50be0fc5
      https://github.com/llvm/llvm-project/commit/057a2c239e801810fc28d3e87fc4e9cf50be0fc5
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-01-27 (Fri, 27 Jan 2023)

  Changed paths:
    M flang/lib/Evaluate/type.cpp
    M flang/test/Evaluate/errors01.f90

  Log Message:
  -----------
  [flang] Don't fold STORAGE_SIZE() on polymorphic argument

More generally, don't return a successful result from
Fortran::evaluate::DynamicType::MeasureSizeInBytes() when the
type is polymorphic.

Differential Revision: https://reviews.llvm.org/D142772




More information about the All-commits mailing list