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 | 51a5f202ad1ab5b35661387125e6d5b4212d608b (patch) | |
tree | 9a4ce7c0970609c51f76b6f5541df584a9cfd678 /clang/lib/Sema/SemaLambda.cpp | |
parent | 46b346ea7b3ad654465145b3503abdd47f3e6241 (diff) | |
download | bcm5719-llvm-51a5f202ad1ab5b35661387125e6d5b4212d608b.tar.gz bcm5719-llvm-51a5f202ad1ab5b35661387125e6d5b4212d608b.zip |
Fix variable ‘IsInitCapturePack’ set but not used warning. NFCI.
llvm-svn: 370345
Diffstat (limited to 'clang/lib/Sema/SemaLambda.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLambda.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaLambda.cpp b/clang/lib/Sema/SemaLambda.cpp index a808854ed98..703d3f212c3 100644 --- a/clang/lib/Sema/SemaLambda.cpp +++ b/clang/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 |