mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
When extending a memset range past the front, set the alignment of the
memset region to the alignment of the new start address. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81810 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -273,6 +273,7 @@ void MemsetRanges::addStore(int64_t Start, StoreInst *SI) {
|
||||
if (Start < I->Start) {
|
||||
I->Start = Start;
|
||||
I->StartPtr = SI->getPointerOperand();
|
||||
I->Alignment = SI->getAlignment();
|
||||
}
|
||||
|
||||
// Now we know that Start <= I->End and Start >= I->Start (so the startpoint
|
||||
|
Reference in New Issue
Block a user