@@ -3095,8 +3095,7 @@ static bool checkWorkGroupSizeValues(Sema &S, Decl *D, const ParsedAttr &AL) {
3095
3095
return Result;
3096
3096
}
3097
3097
3098
- static Expr *checkWorkSizeAttrExpr (Sema &S, const ParsedAttr &CI,
3099
- Expr *E) {
3098
+ static Expr *checkWorkSizeAttrExpr (Sema &S, const ParsedAttr &CI, Expr *E) {
3100
3099
assert (E && " Attribute must have an argument." );
3101
3100
3102
3101
if (!E->isInstantiationDependent ()) {
@@ -3148,8 +3147,8 @@ static void handleWorkGroupSize(Sema &S, Decl *D, const ParsedAttr &AL) {
3148
3147
3149
3148
ASTContext &Ctx = S.getASTContext ();
3150
3149
3151
- if (!XDimExpr->isValueDependent () &&
3152
- !YDimExpr-> isValueDependent () && ! ZDimExpr->isValueDependent ()) {
3150
+ if (!XDimExpr->isValueDependent () && !YDimExpr-> isValueDependent () &&
3151
+ !ZDimExpr->isValueDependent ()) {
3153
3152
Optional<llvm::APSInt> XDimVal = XDimExpr->getIntegerConstantExpr (Ctx);
3154
3153
Optional<llvm::APSInt> YDimVal = YDimExpr->getIntegerConstantExpr (Ctx);
3155
3154
Optional<llvm::APSInt> ZDimVal = ZDimExpr->getIntegerConstantExpr (Ctx);
@@ -3161,7 +3160,7 @@ static void handleWorkGroupSize(Sema &S, Decl *D, const ParsedAttr &AL) {
3161
3160
if (!XDimExpr || !YDimExpr || !ZDimExpr)
3162
3161
return ;
3163
3162
3164
- // Skip SEMA if we're in a template, this will be diagnosed later.
3163
+ // Skip SEMA if we're in a template, this will be diagnosed later.
3165
3164
if (S.getCurLexicalContext ()->isDependentContext ())
3166
3165
return ;
3167
3166
@@ -6047,8 +6046,7 @@ void Sema::addSYCLIntelPipeIOAttr(Decl *D, const AttributeCommonInfo &Attr,
6047
6046
Optional<llvm::APSInt> ArgVal = E->getIntegerConstantExpr (getASTContext ());
6048
6047
if (!ArgVal) {
6049
6048
Diag (E->getExprLoc (), diag::err_attribute_argument_type)
6050
- << Attr << AANT_ArgumentIntegerConstant
6051
- << E->getSourceRange ();
6049
+ << Attr << AANT_ArgumentIntegerConstant << E->getSourceRange ();
6052
6050
return ;
6053
6051
}
6054
6052
int32_t ArgInt = ArgVal->getSExtValue ();
0 commit comments