Skip to content

Commit d644250

Browse files
committed
NFC: Resolve a -Wunused-lambda-capture warning.
1 parent 655336c commit d644250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/Module.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ void SourceLookupCache::addToUnqualifiedLookupCache(Range items,
275275
continue;
276276

277277
if (auto *VD = dyn_cast<ValueDecl>(D)) {
278-
auto getDerivative = [onlyDerivatives, VD]() -> AbstractFunctionDecl * {
278+
auto getDerivative = [VD]() -> AbstractFunctionDecl * {
279279
if (auto *AFD = dyn_cast<AbstractFunctionDecl>(VD))
280280
if (AFD->getAttrs().hasAttribute<DerivativeAttr>())
281281
return AFD;

0 commit comments

Comments
 (0)