Fix a typo in memdep, which was causing PR1648.
authorOwen Anderson <resistor@mac.com>
Tue, 11 Sep 2007 04:31:00 +0000 (04:31 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 11 Sep 2007 04:31:00 +0000 (04:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41833 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/MemoryDependenceAnalysis.cpp

index 3072a5c5737729243bd5a2fc73a6a46b1e2886cc..0400ce3429469f4285836b4aaeedc0e132d26c86 100644 (file)
@@ -425,7 +425,7 @@ void MemoryDependenceAnalysis::removeInstruction(Instruction* rem) {
     reverseDep.erase(rem);
   }
   
-  if (depGraphNonLocal.count(rem)) {
+  if (reverseDepNonLocal.count(rem)) {
     SmallPtrSet<Instruction*, 4>& set = reverseDepNonLocal[rem];
     for (SmallPtrSet<Instruction*, 4>::iterator I = set.begin(), E = set.end();
          I != E; ++I)