]> granicus.if.org Git - clang/commitdiff
Removed mutation of CFGBlock through operator[]. For now the underlying ASTs,
authorTed Kremenek <kremenek@apple.com>
Tue, 15 Jan 2008 00:18:01 +0000 (00:18 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 15 Jan 2008 00:18:01 +0000 (00:18 +0000)
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

include/clang/AST/CFG.h

index 8fc65ef4360e69b69699d1b7ff462225aa97b4e1..90e1338643e10656ec8a17cf26df5eaa6c4e983d 100644 (file)
@@ -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