[llvm-commits] [llvm] r117314 - /llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp
Dan Gohman
gohman at apple.com
Mon Oct 25 14:24:56 PDT 2010
Author: djg
Date: Mon Oct 25 16:24:55 2010
New Revision: 117314
URL: http://llvm.org/viewvc/llvm-project?rev=117314&view=rev
Log:
Fix chaining in TBAA's pointsToConstantMemory.
Modified:
llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp?rev=117314&r1=117313&r2=117314&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp Mon Oct 25 16:24:55 2010
@@ -225,7 +225,7 @@
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.
More information about the llvm-commits
mailing list