mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124134 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user