]> granicus.if.org Git - clang/commitdiff
Add const version if CFG::isBlkExpr().
authorTed Kremenek <kremenek@apple.com>
Sat, 15 Jan 2011 02:58:42 +0000 (02:58 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 15 Jan 2011 02:58:42 +0000 (02:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123511 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/CFG.h

index 1c7e9bfef60a6049a9cdf526d59aa7282e62b345..b337d74495c9be52254ecbf74bdde115bc099288 100644 (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();