Mercurial > hg > CbC > CbC_llvm
changeset 203:0d4b2609c30f
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 05 Jun 2021 11:18:24 +0900 |
parents | d6e4c9eda2cc |
children | e348f3e5c8b2 |
files | clang/lib/Parse/ParseCbC.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/clang/lib/Parse/ParseCbC.cpp Fri Jun 04 23:22:07 2021 +0900 +++ b/clang/lib/Parse/ParseCbC.cpp Sat Jun 05 11:18:24 2021 +0900 @@ -244,7 +244,7 @@ Token TokSave = Tok; SourceLocation PLocSave = PrevTokLocation; // jmp_buf env_buf; --> int env_buf[64]; - Tok = PP.ReadFromString("int env_buf[64];",Loc); + PP.ReadFromString("int env_buf[64];",Loc); ConsumeAnyToken(); // innerRes = CreateDeclStmt(bufII, false, false, 64, DeclSpec::TST_typename, CreateIdentifierInfo("int", Loc)); StmtVector Stmts; @@ -326,6 +326,8 @@ PP.AnnotateCachedTokens(LHSToken); LHS = getExprAnnotation(LHSToken); } else if (Classification.getKind() == Sema::NC_NonType) { + Token Tok; + Tok.startToken(); Tok.setKind(tok::annot_non_type); setNonTypeAnnotation(Tok, Classification.getNonTypeDecl()); Tok.setLocation(Loc);