mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Fix memdep's handling of invokes when finding the dependency of another call
instruction. This fixes some Ada miscompiles reported in PR2324. llvm-svn: 51069
This commit is contained in:
parent
6f30057094
commit
5e6431c140
@ -129,7 +129,7 @@ Instruction* MemoryDependenceAnalysis::getCallSiteDependency(CallSite C,
|
||||
|
||||
// FreeInsts erase the entire structure
|
||||
pointerSize = ~0UL;
|
||||
} else if (isa<CallInst>(QI)) {
|
||||
} else if (CallSite::get(QI).getInstruction() != 0) {
|
||||
AliasAnalysis::ModRefBehavior result =
|
||||
AA.getModRefBehavior(CallSite::get(QI));
|
||||
if (result != AliasAnalysis::DoesNotAccessMemory) {
|
||||
|
Loading…
Reference in New Issue
Block a user