Use chaining in TypeBasedAliasAnalysis::pointsToConstantMemory.

llvm-svn: 116721
This commit is contained in:
Dan Gohman 2010-10-18 18:10:31 +00:00
parent 02538ac4d3
commit f0a3bed6d6
1 changed files with 4 additions and 1 deletions

View File

@ -173,5 +173,8 @@ bool TypeBasedAliasAnalysis::pointsToConstantMemory(const Location &Loc) {
// If this is an "immutable" type, we can assume the pointer is pointing
// to constant memory.
return TBAANode(M).TypeIsImmutable();
if (TBAANode(M).TypeIsImmutable())
return true;
return AliasAnalysis::pointsToConstantMemory(Loc);
}