[all-commits] [llvm/llvm-project] 60b673: [flang] Better error recovery for missing THEN in ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu May 18 11:41:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 60b673023f54e899c727e32414fd89b646a147e4
      https://github.com/llvm/llvm-project/commit/60b673023f54e899c727e32414fd89b646a147e4
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-05-18 (Thu, 18 May 2023)

  Changed paths:
    M flang/lib/Parser/executable-parsers.cpp
    A flang/test/Parser/missing-then.f90

  Log Message:
  -----------
  [flang] Better error recovery for missing THEN in IF construct

Presented with "IF (...)" with no following tokens in the statement,
diagnose a missing "THEN" instead of complaining about all of the
possible action statement initial tokens that could have been there
for a non-construct IF statement.

Fixes https://github.com/llvm/llvm-project/issues/62299.

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




More information about the All-commits mailing list