[all-commits] [llvm/llvm-project] 324436: [Clang] Fix bugs the way we handle duplicate vs co...

smanna12 via All-commits all-commits at lists.llvm.org
Tue Apr 2 21:00:10 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 324436c29ffd14bcf96c94500d5e43391f2b1e51
      https://github.com/llvm/llvm-project/commit/324436c29ffd14bcf96c94500d5e43391f2b1e51
  Author: smanna12 <soumi.manna at intel.com>
  Date:   2024-04-02 (Tue, 02 Apr 2024)

  Changed paths:
    M clang/lib/Sema/SemaStmtAttr.cpp
    M clang/test/Sema/code_align.c

  Log Message:
  -----------
  [Clang] Fix bugs the way we handle duplicate vs conflicting values with loop attribute 'code_align' (#87372)

https://github.com/llvm/llvm-project/pull/70762 added support for new
loop attribute [[clang::code_align()]].

This patch fixes bugs for the test cases below that misses diagnostics due to discontinue to while loop during checking duplicate vs conflicting code_align attribute values in routine CheckForDuplicateLoopAttrs().

[[clang::code_align(4)]]
[[clang::code_align(4)]]
[[clang::code_align(8)]]
for(int I=0; I<128; ++I) { bar(I); }

[[clang::code_align(4)]]
[[clang::code_align(4)]]
[[clang::code_align(8)]]
[[clang::code_align(32)]]
for(int I=0; I<128; ++I) { bar(I); }



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