From: Owen Anderson Date: Tue, 10 Jul 2007 20:39:07 +0000 (+0000) Subject: Fix a crasher when finding the dependency of a call. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=202da14fe00fbafa8540baba433147a8eb526814;p=oota-llvm.git Fix a crasher when finding the dependency of a call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38510 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index af105ccb06b..4168cd6fb18 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -83,7 +83,8 @@ Instruction* MemoryDependenceAnalysis::getCallSiteDependency(CallSite C, bool lo } else { continue; } - } + } else + continue; if (AA.getModRefInfo(C, pointer, pointerSize) != AliasAnalysis::NoModRef) { depGraphLocal.insert(std::make_pair(C.getInstruction(), std::make_pair(QI, true)));