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

@@ -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 {