[all-commits] [llvm/llvm-project] 044a71: [flang] Don't attempt to compute element size if n...

Tim Keith via All-commits all-commits at lists.llvm.org
Mon Aug 24 18:23:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 044a71d828cab57b9aefd402105960959a4e2c0e
      https://github.com/llvm/llvm-project/commit/044a71d828cab57b9aefd402105960959a4e2c0e
  Author: Tim Keith <tkeith at nvidia.com>
  Date:   2020-08-24 (Mon, 24 Aug 2020)

  Changed paths:
    M flang/lib/Semantics/compute-offsets.cpp

  Log Message:
  -----------
  [flang] Don't attempt to compute element size if no DynamicType

If an error has occurred a symbol may have a DeclTypeSpec but no
valid DynamicType. There is no need to compute the size of erroneous
symbols.

Also, we only need to process object entities and procedure entities.
All other kinds of symbols can be skipped.

This fixes another problem revealed by https://bugs.llvm.org/show_bug.cgi?id=47265

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




More information about the All-commits mailing list