[all-commits] [llvm/llvm-project] ba1ee2: [APInt] Enable APInt ctor assertion by default (#1...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Oct 18 00:23:47 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ba1ee2bab7a4cdc0975686e5099461c0b12c5345
https://github.com/llvm/llvm-project/commit/ba1ee2bab7a4cdc0975686e5099461c0b12c5345
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-10-18 (Fri, 18 Oct 2024)
Changed paths:
M llvm/include/llvm/ADT/APInt.h
Log Message:
-----------
[APInt] Enable APInt ctor assertion by default (#112670)
This enables the assertion introduced in
https://github.com/llvm/llvm-project/pull/106524, which checks that the
value passed to the APInt 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.
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