Use chaining in TypeBasedAliasAnalysis::pointsToConstantMemory.
llvm-svn: 116721
This commit is contained in:
parent
02538ac4d3
commit
f0a3bed6d6
|
@ -173,5 +173,8 @@ bool TypeBasedAliasAnalysis::pointsToConstantMemory(const Location &Loc) {
|
||||||
|
|
||||||
// If this is an "immutable" type, we can assume the pointer is pointing
|
// If this is an "immutable" type, we can assume the pointer is pointing
|
||||||
// to constant memory.
|
// to constant memory.
|
||||||
return TBAANode(M).TypeIsImmutable();
|
if (TBAANode(M).TypeIsImmutable())
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return AliasAnalysis::pointsToConstantMemory(Loc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue