Suppress warnings, NFC

Swift SVN r32662
This commit is contained in:
Xi Ge
2015-10-13 20:00:02 +00:00
parent 7cc59e01d7
commit 1138a9cd27
2 changed files with 1 additions and 3 deletions

View File

@@ -721,8 +721,6 @@ static bool omitNeedlessWordsMatchingFirstArgumentLabel(
/// Determine whether the given word indicates a boolean result.
static bool nameIndicatesBooleanResult(StringRef name) {
bool isFirstWord = true;
for (auto word: camel_case::getWords(name)) {
// Auxiliary verbs indicate Boolean results.
if (getPartOfSpeech(word) == PartOfSpeech::AuxiliaryVerb)

View File

@@ -295,7 +295,7 @@ bool IterativeTypeChecker::isResolveTypeDeclSatisfied(TypeDecl *typeDecl) {
}
// Module types are always fully resolved.
if (auto module = dyn_cast<ModuleDecl>(typeDecl))
if (typeDecl->getKind() == DeclKind::Module)
return true;
// Nominal types.