Add const version if CFG::isBlkExpr().

llvm-svn: 123511
This commit is contained in:
Ted Kremenek 2011-01-15 02:58:42 +00:00
parent a88942ad9c
commit 688b674087
1 changed files with 4 additions and 1 deletions

View File

@ -624,7 +624,10 @@ public:
operator unsigned() const { assert(Idx >=0); return (unsigned) Idx; }
};
bool isBlkExpr(const Stmt* S) { return getBlkExprNum(S); }
bool isBlkExpr(const Stmt* S) { return getBlkExprNum(S); }
bool isBlkExpr(const Stmt *S) const {
return const_cast<CFG*>(this)->isBlkExpr(S);
}
BlkExprNumTy getBlkExprNum(const Stmt* S);
unsigned getNumBlkExprs();