Fix unreachable code warning by tightening code. No functionality change.

Swift SVN r14055
This commit is contained in:
Ted Kremenek
2014-02-18 22:26:58 +00:00
parent 57cae45875
commit ea80d0473d

View File

@@ -1823,23 +1823,17 @@ private:
isSwiftModule(unboundType->getChild(0))) {
return SugarType::Optional;
}
return SugarType::None;
}
else /*if (pointer->getKind() == Node::Kind::BoundGenericStructure)*/
{
else { /*if (pointer->getKind() == Node::Kind::BoundGenericStructure)*/
// Swift.Array
if (isIdentifier(unboundType->getChild(1), "Array") &&
typeArgs->getNumChildren() == 1 &&
isSwiftModule(unboundType->getChild(0))) {
return SugarType::Slice;
}
return SugarType::None;
}
return SugarType::None;
}
void printBoundGeneric(Node *pointer) {