================
@@ -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);
----------------
andykaylor wrote:
That limitation seems to be intended to prevent the type from changing during
round-trip processing of the IR. It was introduced here:
https://github.com/llvm/llvm-project/commit/720762e2c0fc849342996302c37471b35e3537c8
https://github.com/llvm/llvm-project/pull/215638
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits