From f5a9518ec408de44a4dac6e2cbfe44ddbfc45d89 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42114 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Analysis/UninitializedValues.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/clang/Analysis/UninitializedValues.h b/include/clang/Analysis/UninitializedValues.h index f27cdc46cd..d116da595c 100644 --- a/include/clang/Analysis/UninitializedValues.h +++ b/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) { -- 2.40.0