[all-commits] [llvm/llvm-project] 75cb7d: [ubsan] Display correct runtime messages for negat...

earnol via All-commits all-commits at lists.llvm.org
Thu Aug 15 07:15:49 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75cb7de404ee236d6297c551740a2681583d7e5e
      https://github.com/llvm/llvm-project/commit/75cb7de404ee236d6297c551740a2681583d7e5e
  Author: earnol <earnol at users.noreply.github.com>
  Date:   2024-08-15 (Thu, 15 Aug 2024)

  Changed paths:
    M clang/lib/CodeGen/CGExpr.cpp
    A clang/test/CodeGen/bit-int-ubsan.c
    M compiler-rt/lib/ubsan/ubsan_value.cpp
    M compiler-rt/lib/ubsan/ubsan_value.h
    A compiler-rt/test/ubsan/TestCases/Integer/bit-int-pass.c
    A compiler-rt/test/ubsan/TestCases/Integer/bit-int.c

  Log Message:
  -----------
  [ubsan] Display correct runtime messages for negative _BitInt (#96240)

Without this patch compiler-rt ubsan library has a bug displaying
incorrect values for variables of the _BitInt (previously called
_ExtInt) type. This patch affects affects both: generation of metadata
inside code generator and runtime part. The runtime part provided only
for i386 and x86_64 runtimes. Other runtimes should be updated to take
full benefit of this patch.
The patch is constructed the way to be backward compatible and int and
float type runtime diagnostics should be unaffected for not yet updated
runtimes.

This patch fixes issue
https://github.com/llvm/llvm-project/issues/64100.

Co-authored-by: Eänolituri Lómitaurë <vladislav.aranov at ericsson.com>
Co-authored-by: Aaron Ballman <aaron at aaronballman.com>
Co-authored-by: Paul Kirth <paulkirth at google.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