Mercurial > hg > CbC > CbC_llvm
changeset 128:c347d3398279
fix
author | mir3636 |
---|---|
date | Wed, 06 Dec 2017 14:37:17 +0900 |
parents | 2ce56a727a15 |
children | 9ec641e857f8 |
files | tools/clang/lib/Parse/ParseCbC.cpp |
diffstat | 1 files changed, 11 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/clang/lib/Parse/ParseCbC.cpp Tue Dec 05 00:04:34 2017 +0900 +++ b/tools/clang/lib/Parse/ParseCbC.cpp Wed Dec 06 14:37:17 2017 +0900 @@ -226,7 +226,7 @@ DeclaratorInfo.ExtendWithDeclSpec(star_DS); DeclaratorInfo.SetIdentifier(nullptr, Tok.getLocation()); DeclaratorInfo.AddTypeInfo(DeclaratorChunk::getPointer(star_DS.getTypeQualifiers(), Loc,star_DS.getConstSpecLoc(),star_DS.getVolatileSpecLoc(), - star_DS.getRestrictSpecLoc(),star_DS.getAtomicSpecLoc()),star_DS.getAttributes(),SourceLocation()); + star_DS.getRestrictSpecLoc(),star_DS.getAtomicSpecLoc(),star_DS.getUnalignedSpecLoc()),star_DS.getAttributes(),SourceLocation()); return Actions.ActOnCastExpr(getCurScope(), Loc, DeclaratorInfo, CastTy,Loc, Result.get()); } @@ -298,7 +298,7 @@ DS.Finish(Actions, Policy); D.AddTypeInfo(DeclaratorChunk::getPointer(FDS.getTypeQualifiers(), Loc, FDS.getConstSpecLoc(), FDS.getVolatileSpecLoc(), - FDS.getRestrictSpecLoc(), DS.getAtomicSpecLoc()), FDS.getAttributes(), SourceLocation()); + FDS.getRestrictSpecLoc(), DS.getAtomicSpecLoc(), FDS.getUnalignedSpecLoc()), FDS.getAttributes(), SourceLocation()); D.setGroupingParens(hadGroupingParens); @@ -338,7 +338,7 @@ ESpecType, ESpecRange.getBegin(), DynamicExceptions.data(), DynamicExceptionRanges.data(), DynamicExceptions.size(), - NoexceptExpr.isUsable() ? NoexceptExpr.get() : 0, ExceptionSpecTokens, Loc, Loc, D, TrailingReturnType), + NoexceptExpr.isUsable() ? NoexceptExpr.get() : 0, ExceptionSpecTokens, None, Loc, Loc, D, TrailingReturnType), FnAttrs, Loc); PrototypeScope.Exit(); DSp = &FDS; @@ -564,7 +564,7 @@ DeclaratorInfo.D.SetIdentifier(CreateIdentifierInfo(Name, Loc),Loc); DeclaratorInfo.D.AddTypeInfo(DeclaratorChunk::getPointer(DS.getTypeQualifiers(), Loc,DS.getConstSpecLoc(), - DS.getVolatileSpecLoc(),DS.getRestrictSpecLoc(), DS.getAtomicSpecLoc()), + DS.getVolatileSpecLoc(),DS.getRestrictSpecLoc(), DS.getAtomicSpecLoc(), DS.getUnalignedSpecLoc()), DS.getAttributes(),SourceLocation()); Decl *Field = Actions.ActOnField(getCurScope(), TagDecl, DeclaratorInfo.D.getDeclSpec().getSourceRange().getBegin(), @@ -666,7 +666,7 @@ VolatileQualifierLoc, RestrictQualifierLoc, SourceLocation(), ESpecType, ESpecRange.getBegin(), DynamicExceptions.data(), DynamicExceptionRanges.data(), DynamicExceptions.size(), - NoexceptExpr.isUsable() ? NoexceptExpr.get() : 0, ExceptionSpecTokens, + NoexceptExpr.isUsable() ? NoexceptExpr.get() : 0, ExceptionSpecTokens, None, Loc, Loc, D, TrailingReturnType), FnAttrs, Loc); PrototypeScope.Exit(); @@ -700,7 +700,8 @@ starDS.getConstSpecLoc(), starDS.getVolatileSpecLoc(), starDS.getRestrictSpecLoc(), - starDS.getAtomicSpecLoc()), + starDS.getAtomicSpecLoc(), + starDS.getUnalignedSpecLoc()), starDS.getAttributes(), SourceLocation()); ExprVector ArgExprs2; @@ -745,7 +746,8 @@ ljDS.getConstSpecLoc(), ljDS.getVolatileSpecLoc(), ljDS.getRestrictSpecLoc(), - ljDS.getAtomicSpecLoc()), + ljDS.getAtomicSpecLoc(), + ljDS.getUnalignedSpecLoc()), ljDS.getAttributes(), SourceLocation()); ljLHS = LookupNameAndBuildExpr(envII); @@ -826,7 +828,8 @@ pointerDS.getConstSpecLoc(), pointerDS.getVolatileSpecLoc(), pointerDS.getRestrictSpecLoc(), - pointerDS.getAtomicSpecLoc()), + pointerDS.getAtomicSpecLoc(), + pointerDS.getUnalignedSpecLoc()), pointerDS.getAttributes(),SourceLocation()); } ParmVarDecl *Param = dyn_cast<ParmVarDecl>(Actions.ActOnParamDeclarator(getCurScope(), ParamDeclarator));