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 77e2cd3Copy full SHA for 77e2cd3
lib/AST/CaptureInfo.cpp
@@ -88,11 +88,9 @@ 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: isLocalCapture() returns false if we have dynamic self metadata
+ // since dynamic self metadata is never an isolated capture. So we can just
+ // call isLocalCapture without checking for dynamic self metadata.
96
if (!capture.isLocalCapture())
97
continue;
98
0 commit comments