[all-commits] [llvm/llvm-project] 84a543: Fix crash when an attribute is applied to pragma a...

Erich Keane via All-commits all-commits at lists.llvm.org
Wed Apr 30 07:32:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 84a5435db63f43ec3f4abbb42eda2674dd35cda9
      https://github.com/llvm/llvm-project/commit/84a5435db63f43ec3f4abbb42eda2674dd35cda9
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2025-04-30 (Wed, 30 Apr 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Parse/ParseStmt.cpp
    A clang/test/Parser/gh137861.cpp

  Log Message:
  -----------
  Fix crash when an attribute is applied to pragma attribute/pragma dump (#137880)

These two don't result in a statement, so the attempt to apply the
attributes to them was crashing. This patch correctly prohibits the use
of attributes on these clauses.

Fixes: #137861



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