Drop Loop::isNotAlreadyContainedIn in favor of Loop::contains. The
[oota-llvm.git] / include / llvm / Analysis / SparsePropagation.h
index 820e1bd1e436bab49e1c110be4579205837ab54f..677d41d80b2203085604d051bac15c7fb885d550 100644 (file)
@@ -153,7 +153,7 @@ public:
   /// value.  If an value is not in the map, it is returned as untracked,
   /// unlike the getOrInitValueState method.
   LatticeVal getLatticeState(Value *V) const {
-    DenseMap<Value*, LatticeVal>::iterator I = ValueState.find(V);
+    DenseMap<Value*, LatticeVal>::const_iterator I = ValueState.find(V);
     return I != ValueState.end() ? I->second : LatticeFunc->getUntrackedVal();
   }