[all-commits] [llvm/llvm-project] 926b5e: [clang][bytecode] Fix null ptr upcasts adding offs...

Benji Smith via All-commits all-commits at lists.llvm.org
Tue Sep 22 23:26:37 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 926b5e99cf68644ea18ae4573d4bdbfd7edf1cb5
      https://github.com/llvm/llvm-project/commit/926b5e99cf68644ea18ae4573d4bdbfd7edf1cb5
  Author: Benji Smith <6193112+Benjins at users.noreply.github.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M clang/lib/AST/ByteCode/Pointer.cpp
    M clang/test/AST/ByteCode/const-base-cast.cpp

  Log Message:
  -----------
  [clang][bytecode] Fix null ptr upcasts adding offset (#224873)

Previously, this was applying the offset it would for non-null pointers,
but null pointers should always cast to a null pointer result.

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



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