[all-commits] [llvm/llvm-project] 5352ce: [libc] fix -Warray-bounds in block_offset (#77001)

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Fri Jan 5 08:19:17 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5352ce32fccd37c54aff2b3a2b0e3ca5115bb8a9
      https://github.com/llvm/llvm-project/commit/5352ce32fccd37c54aff2b3a2b0e3ca5115bb8a9
  Author: Nick Desaulniers <nickdesaulniers at users.noreply.github.com>
  Date:   2024-01-05 (Fri, 05 Jan 2024)

  Changed paths:
    M libc/src/string/memory_utils/op_builtin.h

  Log Message:
  -----------
  [libc] fix -Warray-bounds in block_offset (#77001)

GCC reports an instance of -Warray-bounds in block_offset.  Reimplement
block_offset in terms of memcpy_inline which was created to avoid this
diagnostic. See the linked issue for the full trace of diagnostic.

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




More information about the All-commits mailing list