Skip to content

Commit 125a84e

Browse files
committed
Revert "Use value instead of value_or"
This reverts commit 85376c3.
1 parent 85376c3 commit 125a84e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ LogicalResult getVectorToLLVMAlignment(LoadOrStoreOp loadOrStoreOp,
133133
MemRefType memrefType, unsigned &align,
134134
bool useVectorAlignment) {
135135
if (auto alignment = loadOrStoreOp.getAlignment()) {
136-
align = alignment.value();
136+
align = alignment.value_or(0);
137137
return success();
138138
}
139139
return getVectorToLLVMAlignment(typeConverter, vectorType, memrefType,

0 commit comments

Comments
 (0)