diff --git a/lib/Conversion/SCFToCalyx/SCFToCalyx.cpp b/lib/Conversion/SCFToCalyx/SCFToCalyx.cpp index 6ef0da7e0a68..76a25fa08fbe 100644 --- a/lib/Conversion/SCFToCalyx/SCFToCalyx.cpp +++ b/lib/Conversion/SCFToCalyx/SCFToCalyx.cpp @@ -1060,7 +1060,8 @@ static LogicalResult buildAllocOp(ComponentLoweringState &componentState, // value's precision handling. value = bit_cast(bitValue); } else { - APInt apInt(/*numBits=*/elmTyBitWidth, bitValue, isSigned); + APInt apInt(/*numBits=*/elmTyBitWidth, bitValue, isSigned, + /*implicitTrunc=*/true); // The conditional ternary operation will cause the `value` to interpret // the underlying data as unsigned regardless `isSigned` or not. if (isSigned) diff --git a/llvm b/llvm index 8193832fb988..3cc852ece438 160000 --- a/llvm +++ b/llvm @@ -1 +1 @@ -Subproject commit 8193832fb988e3df1e8e726634783805dca8d9b6 +Subproject commit 3cc852ece438a63e7b09d1c84a81d21598454e1a