forked from OSchip/llvm-project
Fixed bug where getBitRef would incorrectly grab the bit from the
wrong bitvector. llvm-svn: 42114
This commit is contained in:
parent
9427b0e23b
commit
d51126b97e
|
@ -71,7 +71,7 @@ public:
|
||||||
ExprBV.reset();
|
ExprBV.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool equal(ValTy& RHS) const {
|
bool operator==(ValTy& RHS) const {
|
||||||
return DeclBV == RHS.DeclBV && ExprBV == RHS.ExprBV;
|
return DeclBV == RHS.DeclBV && ExprBV == RHS.ExprBV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ public:
|
||||||
llvm::BitVector::reference getBitRef(const Expr* E,
|
llvm::BitVector::reference getBitRef(const Expr* E,
|
||||||
AnalysisDataTy& AD) {
|
AnalysisDataTy& AD) {
|
||||||
assert (AD.isTracked(E) && "Expr not tracked.");
|
assert (AD.isTracked(E) && "Expr not tracked.");
|
||||||
return DeclBV[AD.EMap[E]];
|
return ExprBV[AD.EMap[E]];
|
||||||
}
|
}
|
||||||
|
|
||||||
bool sizesEqual(ValTy& RHS) {
|
bool sizesEqual(ValTy& RHS) {
|
||||||
|
|
Loading…
Reference in New Issue