[all-commits] [llvm/llvm-project] 6c8e9a: [clang][bytecode][NFC] Add assert to ptrauth_strin...

Timm Baeder via All-commits all-commits at lists.llvm.org
Sat Mar 22 00:05:50 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c8e9a6192a812237415d7d03d5ae234bc244c97
      https://github.com/llvm/llvm-project/commit/6c8e9a6192a812237415d7d03d5ae234bc244c97
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2025-03-22 (Sat, 22 Mar 2025)

  Changed paths:
    M clang/lib/AST/ByteCode/InterpBuiltin.cpp

  Log Message:
  -----------
  [clang][bytecode][NFC] Add assert to ptrauth_string_discriminator (#132527)

As pointed out by @shafik, this confuses static analysis and most
probably humans as well. Add an assertion to ensure the given array has
at least one element.



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