Skip to content

Commit

Permalink
Fix variable ‘IsInitCapturePack’ set but not used warning. NFCI.
Browse files Browse the repository at this point in the history
llvm-svn: 370345
  • Loading branch information
RKSimon committed Aug 29, 2019
1 parent 46b346e commit 51a5f20
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions clang/lib/Sema/SemaLambda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -824,11 +824,8 @@ VarDecl *Sema::createLambdaInitCaptureVarDecl(SourceLocation Loc,
// FIXME: Retain the TypeSourceInfo from buildLambdaInitCaptureInitialization
// rather than reconstructing it here.
TypeSourceInfo *TSI = Context.getTrivialTypeSourceInfo(InitCaptureType, Loc);
bool IsInitCapturePack = false;
if (auto PETL = TSI->getTypeLoc().getAs<PackExpansionTypeLoc>()) {
if (auto PETL = TSI->getTypeLoc().getAs<PackExpansionTypeLoc>())
PETL.setEllipsisLoc(EllipsisLoc);
IsInitCapturePack = true;
}

// Create a dummy variable representing the init-capture. This is not actually
// used as a variable, and only exists as a way to name and refer to the
Expand Down

0 comments on commit 51a5f20

Please sign in to comment.