[all-commits] [llvm/llvm-project] 0f73a2: [clang][Sema] Skip access check on arrays of zero-...

Ding Fei via All-commits all-commits at lists.llvm.org
Fri Aug 11 07:07:55 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f73a2406a16f3a69dd6e62f0faa3a4aa05c5d84
      https://github.com/llvm/llvm-project/commit/0f73a2406a16f3a69dd6e62f0faa3a4aa05c5d84
  Author: dingfei <fding at feysh.com>
  Date:   2023-08-11 (Fri, 11 Aug 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaChecking.cpp
    A clang/test/Sema/array-bounds-zero-length-elem-gh64564.c

  Log Message:
  -----------
  [clang][Sema] Skip access check on arrays of zero-length element

Bound check on array of zero-sized element isn't meaningful.

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

Reviewed By: jacquesguan

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


  Commit: afff91de082d1347d81c413a424f0a1b6fb02774
      https://github.com/llvm/llvm-project/commit/afff91de082d1347d81c413a424f0a1b6fb02774
  Author: dingfei <fding at feysh.com>
  Date:   2023-08-11 (Fri, 11 Aug 2023)

  Changed paths:
    M clang/unittests/AST/StructuralEquivalenceTest.cpp

  Log Message:
  -----------
  [ASTImporter][NFC] Fix typo in testcase

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


Compare: https://github.com/llvm/llvm-project/compare/177ec17944af...afff91de082d


More information about the All-commits mailing list