mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +08:00
[mlir][NFC] Remove dependency on DataLayout::getPrefTypeAlignment
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user