File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
llvm/lib/Transforms/Scalar Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -146,13 +146,12 @@ bool MemsetRange::isProfitableToUseMemset(const DataLayout &DL) const {
146146
147147
148148static Align findStoreAlignment (const DataLayout &DL, const StoreInst *SI) {
149- return DL.getValueOrABITypeAlignment (MaybeAlign ( SI->getAlignment () ),
149+ return DL.getValueOrABITypeAlignment (SI->getAlign ( ),
150150 SI->getOperand (0 )->getType ());
151151}
152152
153153static Align findLoadAlignment (const DataLayout &DL, const LoadInst *LI) {
154- return DL.getValueOrABITypeAlignment (MaybeAlign (LI->getAlignment ()),
155- LI->getType ());
154+ return DL.getValueOrABITypeAlignment (LI->getAlign (), LI->getType ());
156155}
157156
158157static Align findCommonAlignment (const DataLayout &DL, const StoreInst *SI,
You can’t perform that action at this time.
0 commit comments