From d51126b97eacdef13cc9ba59aab3a4d01367f9e5 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 18 Sep 2007 23:30:45 +0000 Subject: [PATCH] Fixed bug where getBitRef would incorrectly grab the bit from the wrong bitvector. llvm-svn: 42114 --- clang/include/clang/Analysis/UninitializedValues.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/Analysis/UninitializedValues.h b/clang/include/clang/Analysis/UninitializedValues.h index f27cdc46cd90..d116da595c5e 100644 --- a/clang/include/clang/Analysis/UninitializedValues.h +++ b/clang/include/clang/Analysis/UninitializedValues.h @@ -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) {