projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5b2762
)
Fix a latent bug in the AliasSetTracker that was exposed by the FreeInst additions...
author
Chris Lattner
<sabre@nondot.org>
Sun, 25 Jul 2004 18:32:01 +0000
(18:32 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 25 Jul 2004 18:32:01 +0000
(18:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15214
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/AliasSetTracker.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/AliasSetTracker.cpp
b/lib/Analysis/AliasSetTracker.cpp
index 22396b5d8724f5cf2a417ceac4bc6ab8670a1e05..f11159ef9e1bf62850d9e7adf6fabc792bced0b1 100644
(file)
--- a/
lib/Analysis/AliasSetTracker.cpp
+++ b/
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)) {