try! error message should reprt the right location

At the moment the location being reported is inside the standard
library, which is not very helpful. Instead, the location should point
at the `try!` expression in the application code.

Fixes: rdar://problem/21407683
This commit is contained in:
Maxim Moiseev
2018-09-21 10:13:57 -07:00
parent de697dcae1
commit 5f17e64be0
7 changed files with 46 additions and 15 deletions

View File

@@ -62,6 +62,7 @@ FUNC_DECL(BridgeAnyObjectToAny,
FUNC_DECL(ConvertToAnyHashable, "_convertToAnyHashable")
FUNC_DECL(DiagnoseUnexpectedError, "_unexpectedError")
FUNC_DECL(DiagnoseUnexpectedNilOptional, "_diagnoseUnexpectedNilOptional")
FUNC_DECL(DiagnoseUnexpectedEnumCase, "_diagnoseUnexpectedEnumCase")
FUNC_DECL(DiagnoseUnexpectedEnumCaseValue, "_diagnoseUnexpectedEnumCaseValue")