mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Fix crasher in GVN due to my recent capture tracking changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145047 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -375,7 +375,7 @@ MemoryDependenceAnalysis::getModRefInfo(const Instruction *Inst,
|
||||
// with a smarter AA in place, this test is just wasting compile time.
|
||||
if (!DT) return AliasAnalysis::ModRef;
|
||||
const Value *Object = GetUnderlyingObject(MemLoc.Ptr, TD);
|
||||
if (!isIdentifiedObject(Object) || isa<GlobalVariable>(Object))
|
||||
if (!isIdentifiedObject(Object) || isa<GlobalValue>(Object))
|
||||
return AliasAnalysis::ModRef;
|
||||
ImmutableCallSite CS(Inst);
|
||||
if (!CS.getInstruction()) return AliasAnalysis::ModRef;
|
||||
|
Reference in New Issue
Block a user