[cfe-commits] r76539 - /cfe/trunk/include/clang/Parse/Parser.h

Argiris Kirtzidis akyrtzi at gmail.com
Mon Jul 20 23:48:06 PDT 2009


Author: akirtzidis
Date: Tue Jul 21 01:48:06 2009
New Revision: 76539

URL: http://llvm.org/viewvc/llvm-project?rev=76539&view=rev
Log:
Add an assert for safety check.

Modified:
    cfe/trunk/include/clang/Parse/Parser.h

Modified: cfe/trunk/include/clang/Parse/Parser.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/Parser.h?rev=76539&r1=76538&r2=76539&view=diff

==============================================================================
--- cfe/trunk/include/clang/Parse/Parser.h (original)
+++ cfe/trunk/include/clang/Parse/Parser.h Tue Jul 21 01:48:06 2009
@@ -1086,6 +1086,7 @@
       : P(p), SS(ss), EnteredScope(false) {}
 
     void EnterDeclaratorScope() {
+      assert(!EnteredScope && "Already entered the scope!");
       assert(SS.isSet() && "C++ scope was not set!");
       P.Actions.ActOnCXXEnterDeclaratorScope(P.CurScope, SS);
       EnteredScope = true;





More information about the cfe-commits mailing list