[all-commits] [llvm/llvm-project] d40e60: [flang] Fix crash from empty -DMACRO= (bug #64837)

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Aug 23 10:21:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d40e6005db992007d0d856f07eb6c5770a45389b
      https://github.com/llvm/llvm-project/commit/d40e6005db992007d0d856f07eb6c5770a45389b
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M flang/lib/Parser/preprocessor.cpp
    M flang/lib/Parser/token-sequence.h
    A flang/test/Preprocessing/bug64837.F90

  Log Message:
  -----------
  [flang] Fix crash from empty -DMACRO= (bug #64837)

Some vector indexing code in the preprocessor fails with empty
tokens or token sequences in predefined macros.

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

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




More information about the All-commits mailing list