Simplify some code. NFC

This commit is contained in:
Xi Ge
2016-03-03 18:25:35 -08:00
parent 8bde763ba2
commit 591249f953
2 changed files with 2 additions and 3 deletions

View File

@@ -275,8 +275,7 @@ struct SynthesizedExtensionAnalyzer::Implementation {
Unhandled.pop_back();
for (ExtensionDecl *E : Back->getExtensions()) {
if(E->isConstrainedExtension()) {
auto Info = isApplicable(E);
if (Info.isValid())
if (auto Info = isApplicable(E))
(*pMap)[E] = Info;
}
for (auto TL : Back->getInherited()) {