[Mlir-commits] [mlir] [MLIR] Make compatible with APInt ctor assertion (PR #110466)
Jakub Kuderski
llvmlistbot at llvm.org
Mon Sep 30 06:29:14 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);
----------------
kuhar wrote:
Why would this truncate?
https://github.com/llvm/llvm-project/pull/110466
More information about the Mlir-commits
mailing list