[all-commits] [llvm/llvm-project] 68b7fe: [clang] Follow-up fixes for offsetof unsigned inde...

Marlus Cadanus da Costa via All-commits all-commits at lists.llvm.org
Fri Jul 31 13:19:05 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68b7feaa62bbf6b817364a65e749aba9917141ff
      https://github.com/llvm/llvm-project/commit/68b7feaa62bbf6b817364a65e749aba9917141ff
  Author: Marlus Cadanus da Costa <marluscadanus at gmail.com>
  Date:   2026-08-01 (Sat, 01 Aug 2026)

  Changed paths:
    M clang/lib/AST/ByteCode/Compiler.cpp
    M clang/lib/AST/ByteCode/Interp.h
    M clang/lib/AST/ByteCode/InterpBuiltin.cpp
    M clang/lib/AST/ByteCode/Opcodes.td
    M clang/test/Sema/offsetof-unsigned-index.c

  Log Message:
  -----------
  [clang] Follow-up fixes for offsetof unsigned index change (#207808)

- Rename CastNoOverflow to CastAPToOffsetIndex for clarity
- Add parentheses in overflow guard condition in InterpBuiltin.cpp
- Improve comment explaining why 0x8000000000000000 is rejected

AI Tool Use: GitHub Copilot (Claude Sonnet 4.6) was used to assist in
identifying and drafting the fix. The fix was reviewed, tested, and
validated manually.

---------

Co-authored-by: Cadanus da Costa <maccosta at beenox.com>



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