[all-commits] [llvm/llvm-project] 3494ee: Reapply [APInt] Enable APInt ctor assertion by def...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Nov 1 08:24:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3494ee95902cef62f767489802e469c58a13ea04
      https://github.com/llvm/llvm-project/commit/3494ee95902cef62f767489802e469c58a13ea04
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-11-01 (Fri, 01 Nov 2024)

  Changed paths:
    M llvm/include/llvm/ADT/APInt.h

  Log Message:
  -----------
  Reapply [APInt] Enable APInt ctor assertion by default (#114539)

This enables the assertion introduced in
https://github.com/llvm/llvm-project/pull/106524, which checks that the
value passed to the constructor is indeed a valid N-bit signed or
unsigned integer.

Places that previously violated the assertion were updated in advance,
e.g. in https://github.com/llvm/llvm-project/pull/80309.

It is possible to opt-out of the check and restore the previous behavior
by setting implicitTrunc=true.

-----

The buildbot failures from the previous attempt should be fixed by
a18dd29077c84fc076a4ed431d9e815a3d0b6f24 and
e2074c60bb3982cd8afb6408670332ea27da6383.



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