Skip to content

Commit 5dbf9d5

Browse files
committed
Remove local variable E; return literal directly
Fix whitespace
1 parent e9f8624 commit 5dbf9d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3153,9 +3153,8 @@ static void handleWorkGroupSize(Sema &S, Decl *D, const ParsedAttr &AL) {
31533153
AL.getScopeName()->isStr("intel"))) &&
31543154
"Attribute does not exist in sycl:: or intel:: scope");
31553155

3156-
Expr *E = IntegerLiteral::Create(S.Context, llvm::APInt(32, 1),
3157-
S.Context.IntTy, AL.getLoc());
3158-
return E;
3156+
return (IntegerLiteral::Create(S.Context, llvm::APInt(32, 1),
3157+
S.Context.IntTy, AL.getLoc()));
31593158
};
31603159

31613160
Expr *YDimExpr = AL.isArgExpr(1) ? AL.getArgAsExpr(1)
@@ -3176,6 +3175,7 @@ static void handleWorkGroupSize(Sema &S, Decl *D, const ParsedAttr &AL) {
31763175
}
31773176

31783177
ASTContext &Ctx = S.getASTContext();
3178+
31793179
if (!XDimExpr->isValueDependent() && !YDimExpr->isValueDependent() &&
31803180
!ZDimExpr->isValueDependent()) {
31813181
llvm::APSInt XDimVal, YDimVal, ZDimVal;

0 commit comments

Comments
 (0)