mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user