Fix a crasher when finding the dependency of a call.
authorOwen Anderson <resistor@mac.com>
Tue, 10 Jul 2007 20:39:07 +0000 (20:39 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 10 Jul 2007 20:39:07 +0000 (20:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38510 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/MemoryDependenceAnalysis.cpp

index af105ccb06b8b471bbdefd27969c442e4e6a0b21..4168cd6fb1850e2be59a40288a16e0c1f1674e70 100644 (file)
@@ -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)));