summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/AliasSetTracker.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-25 18:32:01 +0000
committerChris Lattner <sabre@nondot.org>2004-07-25 18:32:01 +0000
commit0c73a1ff053e3e696f8753e867a87ae1d780db67 (patch)
treea2c7fa5746996b6d305053a2dccabbd0e7c9056e /llvm/lib/Analysis/AliasSetTracker.cpp
parent8c1f5c5c64e6b506c7b3e8282c8776e5ccc814c5 (diff)
downloadbcm5719-llvm-0c73a1ff053e3e696f8753e867a87ae1d780db67.tar.gz
bcm5719-llvm-0c73a1ff053e3e696f8753e867a87ae1d780db67.zip
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
Diffstat (limited to 'llvm/lib/Analysis/AliasSetTracker.cpp')
-rw-r--r--llvm/lib/Analysis/AliasSetTracker.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp
index 22396b5d872..f11159ef9e1 100644
--- a/llvm/lib/Analysis/AliasSetTracker.cpp
+++ b/llvm/lib/Analysis/AliasSetTracker.cpp
@@ -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)) {
OpenPOWER on IntegriCloud