AST: Remove noreturn bit from function types

This commit is contained in:
Slava Pestov
2016-07-21 12:35:18 -07:00
parent 5a71bd5321
commit 57c58176bc
33 changed files with 51 additions and 204 deletions

View File

@@ -1601,8 +1601,6 @@ Type ConstraintSystem::simplifyType(Type type,
auto extInfo = ft->getExtInfo();
if (it->second.isNoEscape())
extInfo = extInfo.withNoEscape();
if (it->second.isNoReturn())
extInfo = extInfo.withIsNoReturn();
if (it->second.throws())
extInfo = extInfo.withThrows();
return FunctionType::get(ft->getInput(), ft->getResult(), extInfo);
@@ -1631,8 +1629,6 @@ Type Solution::simplifyType(TypeChecker &tc, Type type) const {
auto extInfo = ft->getExtInfo();
if (it->second.isNoEscape())
extInfo = extInfo.withNoEscape();
if (it->second.isNoReturn())
extInfo = extInfo.withIsNoReturn();
if (it->second.throws())
extInfo = extInfo.withThrows();
return FunctionType::get(simplifyType(tc, ft->getInput()),