[all-commits] [llvm/llvm-project] 0eb8a9: [OpenMP] Fix tentative parsing crash with metadire...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Wed May 14 07:19:46 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0eb8a92ce9a55059b06bf456b53971bb62246a9f
      https://github.com/llvm/llvm-project/commit/0eb8a92ce9a55059b06bf456b53971bb62246a9f
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2025-05-14 (Wed, 14 May 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Parse/ParseOpenMP.cpp
    M clang/test/OpenMP/metadirective_messages.cpp

  Log Message:
  -----------
  [OpenMP] Fix tentative parsing crash with metadirective (#139901)

There were two crashes that have the same root cause: not correctly
handling unexpected tokens. In one case, we were failing to return early
which caused us to parse a paren as a regular token instead of a special
token, causing an assertion. The other case was failing to commit or
revert the tentative parse action when not getting a paren when one was
expected.

Fixes #139665



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list