[clang] [CIR] Use 32-bit value of alloca number of elements (PR #215638)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 13:21:36 PDT 2026
================
@@ -1965,7 +1965,7 @@ mlir::LogicalResult CIRToLLVMAllocaOpLowering::matchAndRewrite(
? adaptor.getDynAllocSize()
: mlir::LLVM::ConstantOp::create(
rewriter, op.getLoc(),
- typeConverter->convertType(rewriter.getIndexType()), 1);
+ typeConverter->convertType(rewriter.getI32Type()), 1);
----------------
erichkeane wrote:
Hmm... that is a strange solution to that... but I guess it doesn't really matter here since we are only doing this when it is '1', so its not particularly problematic.
https://github.com/llvm/llvm-project/pull/215638
More information about the cfe-commits
mailing list