summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-12-10 19:40:47 +0000
committerDan Gohman <gohman@apple.com>2010-12-10 19:40:47 +0000
commitfb0a3754f58399db3a14a7b8d3feaf3c4d2a3635 (patch)
tree97653d0aaf745fcc2d67e8d30fcfe977d7d70bcf /llvm/lib/Analysis
parent4bd64fa805c4f2dc487ce18cd8e1e11e46470c53 (diff)
downloadbcm5719-llvm-fb0a3754f58399db3a14a7b8d3feaf3c4d2a3635.tar.gz
bcm5719-llvm-fb0a3754f58399db3a14a7b8d3feaf3c4d2a3635.zip
Update this code to handle PartialAlias as MayAlias.
llvm-svn: 121508
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/AliasSetTracker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp
index 5fabe75c6b2..3a46976d66f 100644
--- a/llvm/lib/Analysis/AliasSetTracker.cpp
+++ b/llvm/lib/Analysis/AliasSetTracker.cpp
@@ -105,7 +105,7 @@ void AliasSet::addPointer(AliasSetTracker &AST, PointerRec &Entry,
AA.alias(AliasAnalysis::Location(P->getValue(), P->getSize(),
P->getTBAAInfo()),
AliasAnalysis::Location(Entry.getValue(), Size, TBAAInfo));
- if (Result == AliasAnalysis::MayAlias)
+ if (Result != AliasAnalysis::MustAlias)
AliasTy = MayAlias;
else // First entry of must alias must have maximum size!
P->updateSizeAndTBAAInfo(Size, TBAAInfo);
OpenPOWER on IntegriCloud