summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-01-15 02:58:42 +0000
committerTed Kremenek <kremenek@apple.com>2011-01-15 02:58:42 +0000
commit688b674087bad3535810e7992b96686d98c9604f (patch)
treeef7715d5fd8bb473dad68775550b2da59eecdb75
parenta88942ad9c8b5ab43dc537b3a49c1368f4717fe4 (diff)
downloadbcm5719-llvm-688b674087bad3535810e7992b96686d98c9604f.tar.gz
bcm5719-llvm-688b674087bad3535810e7992b96686d98c9604f.zip
Add const version if CFG::isBlkExpr().
llvm-svn: 123511
-rw-r--r--clang/include/clang/Analysis/CFG.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/include/clang/Analysis/CFG.h b/clang/include/clang/Analysis/CFG.h
index 1c7e9bfef60..b337d74495c 100644
--- a/clang/include/clang/Analysis/CFG.h
+++ b/clang/include/clang/Analysis/CFG.h
@@ -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();
OpenPOWER on IntegriCloud