diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-08-29 12:41:19 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-08-29 12:41:19 +0000 |
commit | 9520b8cd542f6d845df34036f45caf712b87af77 (patch) | |
tree | 9165ba891b0542b2927f67c534e0d43754c948ff | |
parent | 577735f23f3a39be6396b75f741a1dfe4ad1c2af (diff) | |
download | clang-9520b8cd542f6d845df34036f45caf712b87af77.tar.gz |
Fix variable ‘IsInitCapturePack’ set but not used warning. NFCI.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370345 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaLambda.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Sema/SemaLambda.cpp b/lib/Sema/SemaLambda.cpp index a808854ed9..703d3f212c 100644 --- a/lib/Sema/SemaLambda.cpp +++ b/lib/Sema/SemaLambda.cpp @@ -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 |