Skip to content

Commit f52424e

Browse files
committed
Variable name changed
Signed-off-by: Arvind Sudarsanam <[email protected]>
1 parent c6ca0b3 commit f52424e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,8 +1885,8 @@ void Sema::ConstructOpenCLKernel(FunctionDecl *KernelCallerFunc,
18851885
constructKernelName(*this, KernelCallerFunc, MC);
18861886
StringRef KernelName(getLangOpts().SYCLUnnamedLambda ? StableName
18871887
: CalculatedName);
1888-
if (KernelLambda->isLambda()) {
1889-
for (const LambdaCapture &LC : KernelLambda->captures()) {
1888+
if (KernelObj->isLambda()) {
1889+
for (const LambdaCapture &LC : KernelObj->captures()) {
18901890
if (LC.capturesThis() && LC.isImplicit()) {
18911891
Diag(LC.getLocation(), diag::err_implicit_this_capture);
18921892
}

0 commit comments

Comments
 (0)