mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Fix some warnings
This commit is contained in:
@@ -511,7 +511,7 @@ ResilienceExpansion DeclContext::getResilienceExpansion() const {
|
||||
for (const auto *dc = this; dc->isLocalContext(); dc = dc->getParent()) {
|
||||
// Default argument initializer contexts have their resilience expansion
|
||||
// set when they're type checked.
|
||||
if (auto *DAI = dyn_cast<DefaultArgumentInitializer>(dc)) {
|
||||
if (isa<DefaultArgumentInitializer>(dc)) {
|
||||
return cast<AbstractFunctionDecl>(dc->getParent())
|
||||
->getDefaultArgumentResilienceExpansion();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user