Fix chaining in TBAA's pointsToConstantMemory.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117314 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2010-10-25 21:24:55 +00:00
parent 9c11be222c
commit 0b2136927d

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.