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.
LocalDiscriminatorsRequest
1 parent 932c6eb commit 7a593ceCopy full SHA for 7a593ce
lib/Sema/TypeCheckStmt.cpp
@@ -337,6 +337,13 @@ unsigned LocalDiscriminatorsRequest::evaluate(
337
node = initInfo.getInitFromProjectedValue();
338
break;
339
}
340
+ } else if (auto *runtimeAttrInit =
341
+ dyn_cast<RuntimeAttributeInitializer>(dc)) {
342
+ auto *attachedTo = runtimeAttrInit->getAttachedToDecl();
343
+ auto generator = attachedTo->getRuntimeDiscoverableAttributeGenerator(
344
+ runtimeAttrInit->getAttr());
345
+ if (generator.second)
346
+ node = generator.first;
347
348
349
if (!node)
0 commit comments