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:
Chris Lattner 2004-07-25 18:32:01 +00:00
parent 8c1f5c5c64
commit 0c73a1ff05
1 changed files with 2 additions and 1 deletions

View File

@ -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)) {