[all-commits] [llvm/llvm-project] 65a9a3: [OpenACC] Fix asserts when checking clauses after ...

Erich Keane via All-commits all-commits at lists.llvm.org
Wed May 14 07:03:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 65a9a3d5b12449f4d32b4f6c01bcc421185a4bf6
      https://github.com/llvm/llvm-project/commit/65a9a3d5b12449f4d32b4f6c01bcc421185a4bf6
  Author: erichkeane <ekeane at nvidia.com>
  Date:   2025-05-14 (Wed, 14 May 2025)

  Changed paths:
    M clang/lib/Sema/SemaOpenACCClause.cpp
    A clang/test/SemaOpenACC/gh139894.cpp

  Log Message:
  -----------
  [OpenACC] Fix asserts when checking clauses after invalid directive

When implementing the parsing for OpenACC I ensured that we could always
continue to do diagnostics/etc.  For the most part, I was consistent
with that assumption throughout clause Sema, but in 3 cases I left in
some unreachables for cases where this would happen. I've now properly
handled all 3 in a reasonable way.

Fixes: #139894



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