Currently the initial value of Tok is dependent an the stack contents
and could cause the Parser to crash on the first ConsumeToken(). Patcy by Bas van den Berg! llvm-svn: 166891
This commit is contained in:
parent
57143f7e78
commit
d5705d1b1c
|
@ -53,6 +53,7 @@ Parser::Parser(Preprocessor &pp, Sema &actions, bool SkipFunctionBodies)
|
|||
GreaterThanIsOperator(true), ColonIsSacred(false),
|
||||
InMessageExpression(false), TemplateParameterDepth(0),
|
||||
ParsingInObjCContainer(false), SkipFunctionBodies(SkipFunctionBodies) {
|
||||
Tok.startToken();
|
||||
Tok.setKind(tok::eof);
|
||||
Actions.CurScope = 0;
|
||||
NumCachedScopes = 0;
|
||||
|
|
Loading…
Reference in New Issue