[Mlir-commits] [mlir] [MLIR] Make compatible with APInt ctor assertion (PR #110466)
Nikita Popov
llvmlistbot at llvm.org
Mon Sep 30 07:33:55 PDT 2024
================
@@ -1284,9 +1284,11 @@ LogicalResult spirv::Deserializer::processConstant(ArrayRef<uint32_t> operands,
uint32_t word1;
uint32_t word2;
} words = {operands[2], operands[3]};
- value = APInt(64, llvm::bit_cast<uint64_t>(words), /*isSigned=*/true);
+ value = APInt(64, llvm::bit_cast<uint64_t>(words), /*isSigned=*/true,
+ /*implicitTrunc=*/true);
----------------
nikic wrote:
Good point, this case can't truncate. I incorrectly copied it from the one directly below, which can. Fixed now.
https://github.com/llvm/llvm-project/pull/110466
More information about the Mlir-commits
mailing list