mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 19:49:49 +00:00
Fix a latent bug in the AliasSetTracker that was exposed by the FreeInst additions and broke a bunch of programs last night.
llvm-svn: 15214
This commit is contained in:
parent
f35e8fcebe
commit
447e112745
@ -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…
Reference in New Issue
Block a user