diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-25 00:48:42 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-25 00:48:42 +0000 |
commit | 624f961f7f3ccfe311da31d51271ca7cfa4dc9ba (patch) | |
tree | 9fe2f2a8710310b2c62877dd3dec1b60ae471bf8 /lib/Analysis/LoopDependenceAnalysis.cpp | |
parent | 7c8e5731d1a6a1a1f8313b7d3a02163b485f19e0 (diff) | |
download | external_llvm-624f961f7f3ccfe311da31d51271ca7cfa4dc9ba.zip external_llvm-624f961f7f3ccfe311da31d51271ca7cfa4dc9ba.tar.gz external_llvm-624f961f7f3ccfe311da31d51271ca7cfa4dc9ba.tar.bz2 |
Make AliasAnalysis and related classes use
getAnalysisIfAvailable<TargetData>().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopDependenceAnalysis.cpp')
-rw-r--r-- | lib/Analysis/LoopDependenceAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/LoopDependenceAnalysis.cpp b/lib/Analysis/LoopDependenceAnalysis.cpp index f185c96..60efa77 100644 --- a/lib/Analysis/LoopDependenceAnalysis.cpp +++ b/lib/Analysis/LoopDependenceAnalysis.cpp @@ -119,8 +119,8 @@ void LoopDependenceAnalysis::analysePair(DependencePair *P) const { const Value *aobj = aptr->getUnderlyingObject(); const Value *bobj = bptr->getUnderlyingObject(); AliasAnalysis::AliasResult alias = AA->alias( - aobj, AA->getTargetData().getTypeStoreSize(aobj->getType()), - bobj, AA->getTargetData().getTypeStoreSize(bobj->getType())); + aobj, AA->getTypeStoreSize(aobj->getType()), + bobj, AA->getTypeStoreSize(bobj->getType())); // We can not analyse objects if we do not know about their aliasing. if (alias == AliasAnalysis::MayAlias) { |