[llvm] 9065b75 - Revert "[APInt] Enable APInt ctor assertion by default (#112670)"
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 18 03:06:56 PDT 2024
Author: Nikita Popov
Date: 2024-10-18T12:06:39+02:00
New Revision: 9065b759ae73fac5edc01fc6c3878642bedfca5d
URL: https://github.com/llvm/llvm-project/commit/9065b759ae73fac5edc01fc6c3878642bedfca5d
DIFF: https://github.com/llvm/llvm-project/commit/9065b759ae73fac5edc01fc6c3878642bedfca5d.diff
LOG: Revert "[APInt] Enable APInt ctor assertion by default (#112670)"
This reverts commit ba1ee2bab7a4cdc0975686e5099461c0b12c5345.
Causes some buildbot failures on aarch64.
Added:
Modified:
llvm/include/llvm/ADT/APInt.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h
index 953b2a27b71526..63a138527b32e1 100644
--- a/llvm/include/llvm/ADT/APInt.h
+++ b/llvm/include/llvm/ADT/APInt.h
@@ -109,7 +109,7 @@ class [[nodiscard]] APInt {
/// \param implicitTrunc allow implicit truncation of non-zero/sign bits of
/// val beyond the range of numBits
APInt(unsigned numBits, uint64_t val, bool isSigned = false,
- bool implicitTrunc = false)
+ bool implicitTrunc = true)
: BitWidth(numBits) {
if (!implicitTrunc) {
if (isSigned) {
More information about the llvm-commits
mailing list