projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a176f0
)
Add an assert for safety check.
author
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Tue, 21 Jul 2009 06:48:06 +0000
(06:48 +0000)
committer
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Tue, 21 Jul 2009 06:48:06 +0000
(06:48 +0000)
llvm-svn: 76539
clang/include/clang/Parse/Parser.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/Parse/Parser.h
b/clang/include/clang/Parse/Parser.h
index
50145ae
..
18f61e7
100644
(file)
--- a/
clang/include/clang/Parse/Parser.h
+++ b/
clang/include/clang/Parse/Parser.h
@@
-1086,6
+1086,7
@@
private:
: 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;