[all-commits] [llvm/llvm-project] fd8808: -fsanitize=vptr: Change hash function and simplify...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jun 19 22:40:16 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd88089151e66a4cb1d90aaa224e4cb4e7a748f4
      https://github.com/llvm/llvm-project/commit/fd88089151e66a4cb1d90aaa224e4cb4e7a748f4
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-19 (Wed, 19 Jun 2024)

  Changed paths:
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/test/CodeGenCXX/catch-undef-behavior.cpp

  Log Message:
  -----------
  -fsanitize=vptr: Change hash function and simplify bit mixer

llvm::hash_value is not guaranteed to be deterministic. Use the
deterministic xxh3_64bits. A strong bit mixer isn't necessary. Use a
simpler one that works well with pointers.



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