[all-commits] [llvm/llvm-project] f411c1: [flang] Fix crash in semantic error recovery situa...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Nov 8 11:19:38 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f411c1dd95092139c8b992260705ac0b75c8583f
      https://github.com/llvm/llvm-project/commit/f411c1dd95092139c8b992260705ac0b75c8583f
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2021-11-08 (Mon, 08 Nov 2021)

  Changed paths:
    M flang/lib/Semantics/expression.cpp

  Log Message:
  -----------
  [flang] Fix crash in semantic error recovery situation

A CHECK() in semantics is triggering when analyzing a program
with an undefined derived type pointer because the CHECK is
expecting a new error message to have been issued in a function
but not allowing for the case that a diagnostic could have been
produced earlier.  Adjust the predicate.

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




More information about the All-commits mailing list