# HG changeset patch # User mir3636 # Date 1512538637 -32400 # Node ID c347d339827969763da0084ef15f75d0c5ef57ca # Parent 2ce56a727a1513641b6f6a8797070d14e7c9a823 fix diff -r 2ce56a727a15 -r c347d3398279 tools/clang/lib/Parse/ParseCbC.cpp --- 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(Actions.ActOnParamDeclarator(getCurScope(), ParamDeclarator));