[all-commits] [llvm/llvm-project] 53c260: [flang] ensure parent component are first in runti...

jeanPerier via All-commits all-commits at lists.llvm.org
Mon Feb 12 02:17:43 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 53c260d99e375f666c6cffa15f5fa261858147a2
      https://github.com/llvm/llvm-project/commit/53c260d99e375f666c6cffa15f5fa261858147a2
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2024-02-12 (Mon, 12 Feb 2024)

  Changed paths:
    M flang/lib/Semantics/runtime-type-info.cpp
    A flang/test/Semantics/typeinfo10.f90

  Log Message:
  -----------
  [flang] ensure parent component are first in runtime type info (#81259)

Static info generated to describe derived types contain an array listing
the components of some derived type.

The parent component must be first for the runtime to properly works.
The current sort was only relying on the offset, but if the parent is an
empty type, this did not work properly because its offset did not
compare smaller than the first component and the parent was not added
first




More information about the All-commits mailing list