forked from OSchip/llvm-project
[InstCombineCalls] Update deprecated API usage (NFC)
Summary: Just updating a call to MemSetInst::getAlignment() to MemSetInst::getDestAlignment(). The former has been deprecated. llvm-svn: 328227
This commit is contained in:
parent
bcb86bb927
commit
710d7b9945
|
@ -279,7 +279,7 @@ Instruction *InstCombiner::SimplifyMemSet(MemSetInst *MI) {
|
|||
if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8))
|
||||
return nullptr;
|
||||
uint64_t Len = LenC->getLimitedValue();
|
||||
Alignment = MI->getAlignment();
|
||||
Alignment = MI->getDestAlignment();
|
||||
assert(Len && "0-sized memory setting should be removed already.");
|
||||
|
||||
// memset(s,c,n) -> store s, c (for n=1,2,4,8)
|
||||
|
|
Loading…
Reference in New Issue