Skip to content

Commit 5a2b3c3

Browse files
authored
[NFC] Remove unused lambda capture (#14203)
Remove ElementTypeIndex from the capture list. It's not used and generates a warning.
1 parent e310db1 commit 5a2b3c3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6185,10 +6185,9 @@ bool Sema::CheckIntelSYCLAllocaBuiltinFunctionCall(unsigned BuiltinID,
61856185
}
61866186

61876187
// Check size is passed as a specialization constant
6188-
const auto CheckSize = [this, IsAlignedAlloca, ElementTypeIndex,
6189-
SpecNameIndex](const ASTContext &Ctx,
6190-
SourceLocation Loc,
6191-
const TemplateArgumentList *CST) {
6188+
const auto CheckSize = [this, IsAlignedAlloca, SpecNameIndex](
6189+
const ASTContext &Ctx, SourceLocation Loc,
6190+
const TemplateArgumentList *CST) {
61926191
TemplateArgument TA = CST->get(SpecNameIndex);
61936192
QualType Ty = TA.getNonTypeTemplateArgumentType();
61946193
if (Ty.isNull() || !Ty->isReferenceType())

0 commit comments

Comments
 (0)