From 0b2136927d54ab40353a0461437769eac187d807 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 25 Oct 2010 21:24:55 +0000 Subject: [PATCH] Fix chaining in TBAA's pointsToConstantMemory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117314 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/TypeBasedAliasAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/TypeBasedAliasAnalysis.cpp b/lib/Analysis/TypeBasedAliasAnalysis.cpp index f2fe35db33f..626517ad9ae 100644 --- a/lib/Analysis/TypeBasedAliasAnalysis.cpp +++ b/lib/Analysis/TypeBasedAliasAnalysis.cpp @@ -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.