Skip to content

Commit 96d9808

Browse files
committed
Revert "Reapply [APInt] Enable APInt ctor assertion by default (llvm#114539)"
This reverts commit 3494ee9. This change has exposed a bug in LLPC. Reverting for now until fixed.
1 parent 8422cc0 commit 96d9808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ADT/APInt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class [[nodiscard]] APInt {
109109
/// \param implicitTrunc allow implicit truncation of non-zero/sign bits of
110110
/// val beyond the range of numBits
111111
APInt(unsigned numBits, uint64_t val, bool isSigned = false,
112-
bool implicitTrunc = false)
112+
bool implicitTrunc = true)
113113
: BitWidth(numBits) {
114114
if (!implicitTrunc) {
115115
if (isSigned) {

0 commit comments

Comments
 (0)