mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Simplify some code. NFC
This commit is contained in:
@@ -57,7 +57,7 @@ private:
|
||||
struct SynthesizedExtensionInfo {
|
||||
ExtensionDecl *Ext = nullptr;
|
||||
std::vector<StringRef> KnownSatisifiedRequirments;
|
||||
bool isValid() { return Ext; }
|
||||
operator bool() const { return Ext; }
|
||||
};
|
||||
|
||||
class SynthesizedExtensionAnalyzer {
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user