forked from OSchip/llvm-project
Update this code to handle PartialAlias as MayAlias.
llvm-svn: 121508
This commit is contained in:
parent
4bd64fa805
commit
fb0a3754f5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue