Skip to content

Commit

Permalink
Revert "Reapply [APInt] Enable APInt ctor assertion by default (llvm#…
Browse files Browse the repository at this point in the history
…114539)"

This reverts commit 3494ee9.

This change has exposed a bug in LLPC. Reverting for now until fixed.
  • Loading branch information
dstutt committed Nov 5, 2024
1 parent 8422cc0 commit 96d9808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/include/llvm/ADT/APInt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 96d9808

Please sign in to comment.