[all-commits] [llvm/llvm-project] 72079d: [flang] Handle typeless (BOZ) arguments in AreComp...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Aug 29 07:46:47 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 72079d922588b615dc5b2178c268362128ff7b3b
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M flang/lib/Evaluate/type.cpp

  Log Message:
  [flang] Handle typeless (BOZ) arguments in AreCompatibleTypes()

The current code can crash due to the representation's use of a negative
INTEGER kind code to signify a typeless (BOZ) argument's "type" as a
DynamicType.  Detect and handle that case, and change some direct
uses of the kind_ data member into kind() accessor references in
places that shouldn't be confronted with BOZ.

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

More information about the All-commits mailing list