]> granicus.if.org Git - clang/commitdiff
Fixed bug where getBitRef would incorrectly grab the bit from the
authorTed Kremenek <kremenek@apple.com>
Tue, 18 Sep 2007 23:30:45 +0000 (23:30 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 18 Sep 2007 23:30:45 +0000 (23:30 +0000)
wrong bitvector.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42114 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/UninitializedValues.h

index f27cdc46cd906c63e70052f66d6083dde0d44bfa..d116da595c5e5532f5d8d06cf10a94ed3b679a03 100644 (file)
@@ -71,7 +71,7 @@ public:
       ExprBV.reset();
     }
     
-    bool equal(ValTy& RHS) const { 
+    bool operator==(ValTy& RHS) const { 
       return DeclBV == RHS.DeclBV && ExprBV == RHS.ExprBV; 
     }
     
@@ -89,7 +89,7 @@ public:
     llvm::BitVector::reference getBitRef(const Expr* E,
                                          AnalysisDataTy& AD) {
       assert (AD.isTracked(E) && "Expr not tracked.");                                                                                   
-      return DeclBV[AD.EMap[E]];
+      return ExprBV[AD.EMap[E]];
     }
     
     bool sizesEqual(ValTy& RHS) {