mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Fix a latent bug in the AliasSetTracker that was exposed by the FreeInst additions and broke a bunch of programs last night.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15214 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c5b27621e0
commit
34a1005737
@ -198,7 +198,8 @@ AliasSet &AliasSetTracker::getAliasSetForPointer(Value *Pointer, unsigned Size,
|
||||
AliasSet::HashNodePair &Entry = getEntryFor(Pointer);
|
||||
|
||||
// Check to see if the pointer is already known...
|
||||
if (Entry.second.hasAliasSet() && Size <= Entry.second.getSize()) {
|
||||
if (Entry.second.hasAliasSet()) {
|
||||
Entry.second.updateSize(Size);
|
||||
// Return the set!
|
||||
return *Entry.second.getAliasSet(*this)->getForwardedTarget(*this);
|
||||
} else if (AliasSet *AS = findAliasSetForPointer(Pointer, Size)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user