forked from OSchip/llvm-project
Fix chaining in TBAA's pointsToConstantMemory.
llvm-svn: 117314
This commit is contained in:
parent
55f21aae85
commit
82b2e0da9c
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue