diff options
author | Dan Gohman <gohman@apple.com> | 2011-01-24 18:53:32 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2011-01-24 18:53:32 +0000 |
commit | 0f124e1987c22d1801c23c93628d202d21bdff10 (patch) | |
tree | d673dbf9fcc1de867343c1ee4b96382caa7e1fd6 /llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | |
parent | 62c31346292888357d82f42bac8e1a0e05c356fb (diff) | |
download | llvm-0f124e1987c22d1801c23c93628d202d21bdff10.zip llvm-0f124e1987c22d1801c23c93628d202d21bdff10.tar.gz llvm-0f124e1987c22d1801c23c93628d202d21bdff10.tar.bz2 |
Give GetUnderlyingObject a TargetData, to keep it in sync
with BasicAA's DecomposeGEPExpression, which recently began
using a TargetData. This fixes PR8968, though the testcase
is awkward to reduce.
Also, update several off GetUnderlyingObject's users
which happen to have a TargetData handy to pass it in.
llvm-svn: 124134
Diffstat (limited to 'llvm/lib/Analysis/MemoryDependenceAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp index 8ac0a37..35043bd 100644 --- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -339,7 +339,7 @@ getPointerDependencyFrom(const AliasAnalysis::Location &MemLoc, bool isLoad, // need to continue scanning until the malloc call. if (isa<AllocaInst>(Inst) || (isa<CallInst>(Inst) && extractMallocCall(Inst))) { - const Value *AccessPtr = GetUnderlyingObject(MemLoc.Ptr); + const Value *AccessPtr = GetUnderlyingObject(MemLoc.Ptr, TD); if (AccessPtr == Inst || AA->alias(Inst, 1, AccessPtr, 1) == AliasAnalysis::MustAlias) |