mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 17:01:00 +08:00
Fix more build failures caused by f4257c5832
MLIR build failed after ElementCount refactoring - updated code to call isScalable() and getKnownMinValue().
This commit is contained in:
@@ -58,8 +58,9 @@ llvm::TypeSize LLVMType::getPrimitiveSizeInBits() {
|
||||
llvm::ElementCount elementCount = t.getElementCount();
|
||||
assert(!elementSize.isScalable() &&
|
||||
"vector type should have fixed-width elements");
|
||||
return llvm::TypeSize(elementSize.getFixedSize() * elementCount.Min,
|
||||
elementCount.Scalable);
|
||||
return llvm::TypeSize(elementSize.getFixedSize() *
|
||||
elementCount.getKnownMinValue(),
|
||||
elementCount.isScalable());
|
||||
})
|
||||
.Default([](LLVMType ty) {
|
||||
assert((ty.isa<LLVMVoidType, LLVMLabelType, LLVMMetadataType,
|
||||
|
||||
Reference in New Issue
Block a user