Fix chaining in TBAA's pointsToConstantMemory.

llvm-svn: 117314
This commit is contained in:
Dan Gohman 2010-10-25 21:24:55 +00:00
parent 55f21aae85
commit 82b2e0da9c
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ bool TypeBasedAliasAnalysis::pointsToConstantMemory(const Location &Loc) {
return AliasAnalysis::pointsToConstantMemory(Loc);
const MDNode *M = Loc.TBAATag;
if (!M) return false;
if (!M) return AliasAnalysis::pointsToConstantMemory(Loc);
// If this is an "immutable" type, we can assume the pointer is pointing
// to constant memory.