[mlir][NFC] Remove dependency on DataLayout::getPrefTypeAlignment

This commit is contained in:
Guillaume Chatelet
2023-01-13 15:03:52 +00:00
parent bf5c17ed0f
commit 652d27881a

View File

@@ -190,5 +190,5 @@ llvm::Type *LLVM::TypeToLLVMIRTranslator::translateType(Type type) {
unsigned LLVM::TypeToLLVMIRTranslator::getPreferredAlignment(
Type type, const llvm::DataLayout &layout) {
return layout.getPrefTypeAlignment(translateType(type));
return layout.getPrefTypeAlign(translateType(type)).value();
}