diff options
| author | Ted Kremenek <kremenek@apple.com> | 2007-09-18 23:30:45 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2007-09-18 23:30:45 +0000 |
| commit | f5a9518ec408de44a4dac6e2cbfe44ddbfc45d89 (patch) | |
| tree | 65cb595b3f974ae00cc96a3e732f00317585be5f | |
| parent | 44e402611fa0e48fc92932de95e19dc9d8c3b3f8 (diff) | |
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
| -rw-r--r-- | include/clang/Analysis/UninitializedValues.h | 4 |
1 files 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) { |
