silence some fallthrough warnings.

Swift SVN r15033
This commit is contained in:
Chris Lattner
2014-03-14 05:50:38 +00:00
parent 7d989767ee
commit bca9000809
3 changed files with 3 additions and 0 deletions

View File

@@ -2890,6 +2890,7 @@ bool irgen::hasPolymorphicParameters(CanSILFunctionType ty) {
case AbstractCC::C: case AbstractCC::C:
// Should never be polymorphic. // Should never be polymorphic.
assert(!ty->isPolymorphic() && "polymorphic C function?!"); assert(!ty->isPolymorphic() && "polymorphic C function?!");
abort();
case AbstractCC::ObjCMethod: case AbstractCC::ObjCMethod:
// An ObjC witness_method reference will notionally have polymorphic type // An ObjC witness_method reference will notionally have polymorphic type
// <Self: P> (...) -> (...), but there are no polymorphic parameters that // <Self: P> (...) -> (...), but there are no polymorphic parameters that

View File

@@ -70,6 +70,7 @@ class SILModule::SerializationCallback : public SerializedSILLoader::Callback {
return; return;
case SILLinkage::Shared: case SILLinkage::Shared:
decl->setLinkage(SILLinkage::Shared); decl->setLinkage(SILLinkage::Shared);
return;
case SILLinkage::Private: // ? case SILLinkage::Private: // ?
case SILLinkage::PublicExternal: case SILLinkage::PublicExternal:
case SILLinkage::HiddenExternal: case SILLinkage::HiddenExternal:

View File

@@ -48,6 +48,7 @@ namespace {
return; return;
case SILLinkage::Shared: case SILLinkage::Shared:
decl->setLinkage(SILLinkage::Shared); decl->setLinkage(SILLinkage::Shared);
return;
case SILLinkage::Private: // ? case SILLinkage::Private: // ?
case SILLinkage::PublicExternal: case SILLinkage::PublicExternal:
case SILLinkage::HiddenExternal: case SILLinkage::HiddenExternal: