AST: Fix some warnings

This commit is contained in:
Slava Pestov
2017-09-20 00:48:20 -07:00
parent a1c4a080a9
commit ab242bd448
2 changed files with 2 additions and 2 deletions

View File

@@ -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();
}