Skip to content

Commit 82e4f64

Browse files
committed
[SYCLNATIVECPU] removed local variable
1 parent c25bad1 commit 82e4f64

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3602,9 +3602,8 @@ class SyclKernelBodyCreator : public SyclKernelFieldHandler {
36023602
BodyStmts.insert(BodyStmts.end(), FinalizeStmts.begin(),
36033603
FinalizeStmts.end());
36043604

3605-
const auto *LDcl = NewBody;
3606-
SourceLocation LL = LDcl ? LDcl->getBeginLoc() : SourceLocation();
3607-
SourceLocation LR = LDcl ? LDcl->getEndLoc() : SourceLocation();
3605+
SourceLocation LL = NewBody ? NewBody->getBeginLoc() : SourceLocation();
3606+
SourceLocation LR = NewBody ? NewBody->getEndLoc() : SourceLocation();
36083607

36093608
return CompoundStmt::Create(SemaSYCLRef.getASTContext(), BodyStmts,
36103609
FPOptionsOverride(), LL, LR);

0 commit comments

Comments
 (0)