[cfe-commits] r42114 - /cfe/trunk/include/clang/Analysis/UninitializedValues.h
Ted Kremenek
kremenek at apple.com
Tue Sep 18 16:30:45 PDT 2007
Author: kremenek
Date: Tue Sep 18 18:30:45 2007
New Revision: 42114
URL: http://llvm.org/viewvc/llvm-project?rev=42114&view=rev
Log:
Fixed bug where getBitRef would incorrectly grab the bit from the
wrong bitvector.
Modified:
cfe/trunk/include/clang/Analysis/UninitializedValues.h
Modified: cfe/trunk/include/clang/Analysis/UninitializedValues.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/UninitializedValues.h?rev=42114&r1=42113&r2=42114&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/UninitializedValues.h (original)
+++ cfe/trunk/include/clang/Analysis/UninitializedValues.h Tue Sep 18 18:30:45 2007
@@ -71,7 +71,7 @@
ExprBV.reset();
}
- bool equal(ValTy& RHS) const {
+ bool operator==(ValTy& RHS) const {
return DeclBV == RHS.DeclBV && ExprBV == RHS.ExprBV;
}
@@ -89,7 +89,7 @@
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) {
More information about the cfe-commits
mailing list