From: Ted Kremenek Date: Tue, 15 Jan 2008 00:18:01 +0000 (+0000) Subject: Removed mutation of CFGBlock through operator[]. For now the underlying ASTs, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bf49e3fa8fa4630c48d78c19e3640fcaf67d07c;p=clang Removed mutation of CFGBlock through operator[]. For now the underlying ASTs, however, can still be manipulated through the returned Stmt*. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45990 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/CFG.h b/include/clang/AST/CFG.h index 8fc65ef436..90e1338643 100644 --- a/include/clang/AST/CFG.h +++ b/include/clang/AST/CFG.h @@ -104,7 +104,6 @@ public: unsigned size() const { return Stmts.size(); } bool empty() const { return Stmts.empty(); } - Stmt*& operator[](size_t i) { assert (i < size()); return Stmts[i]; } Stmt* operator[](size_t i) const { assert (i < size()); return Stmts[i]; } // CFG iterators