We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a86d338 commit a76eb10Copy full SHA for a76eb10
lib/AST/CaptureInfo.cpp
@@ -88,11 +88,8 @@ VarDecl *CaptureInfo::getIsolatedParamCapture() const {
88
return nullptr;
89
90
for (const auto &capture : getCaptures()) {
91
- // Check for dynamic self metadata before checking if we have a local
92
- // capture since dynamic self metadata doesn't have a decl.
93
- if (capture.isDynamicSelfMetadata())
94
- continue;
95
-
+ // NOTE: This returns false if we have dynamic self metadata. So we do
+ // not need to check this here.
96
if (!capture.isLocalCapture())
97
continue;
98
0 commit comments