[Mlir-commits] [flang] [mlir] [mlir] Align num elements type to LLVM ArrayType (PR #93230)
Valentin Clement バレンタイン クレメン
llvmlistbot at llvm.org
Thu May 23 13:53:50 PDT 2024
================
@@ -632,7 +632,7 @@ llvm::Constant *mlir::LLVM::detail::getLLVMConstant(
llvm::ElementCount::get(numElements, /*Scalable=*/isScalable), child);
if (llvmType->isArrayTy()) {
auto *arrayType = llvm::ArrayType::get(elementType, numElements);
- SmallVector<llvm::Constant *, 8> constants(numElements, child);
+ std::vector<llvm::Constant *> constants(numElements, child);
----------------
clementval wrote:
SmallVector limit is too small to hold this number of elements. Translation would break with an assertion.
https://github.com/llvm/llvm-project/pull/93230
More information about the Mlir-commits
mailing list