We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c25bad1 commit 82e4f64Copy full SHA for 82e4f64
clang/lib/Sema/SemaSYCL.cpp
@@ -3602,9 +3602,8 @@ class SyclKernelBodyCreator : public SyclKernelFieldHandler {
3602
BodyStmts.insert(BodyStmts.end(), FinalizeStmts.begin(),
3603
FinalizeStmts.end());
3604
3605
- const auto *LDcl = NewBody;
3606
- SourceLocation LL = LDcl ? LDcl->getBeginLoc() : SourceLocation();
3607
- SourceLocation LR = LDcl ? LDcl->getEndLoc() : SourceLocation();
+ SourceLocation LL = NewBody ? NewBody->getBeginLoc() : SourceLocation();
+ SourceLocation LR = NewBody ? NewBody->getEndLoc() : SourceLocation();
3608
3609
return CompoundStmt::Create(SemaSYCLRef.getASTContext(), BodyStmts,
3610
FPOptionsOverride(), LL, LR);
0 commit comments