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:
@@ -214,7 +214,11 @@ void swift_willThrow(SWIFT_CONTEXT void *unused,
|
||||
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_API LLVM_ATTRIBUTE_NORETURN
|
||||
void swift_errorInMain(SwiftError *object);
|
||||
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_API LLVM_ATTRIBUTE_NORETURN
|
||||
void swift_unexpectedError(SwiftError *object);
|
||||
void swift_unexpectedError(SwiftError *object,
|
||||
OpaqueValue *filenameStart,
|
||||
long filenameLength,
|
||||
bool isAscii,
|
||||
unsigned long line);
|
||||
|
||||
#if SWIFT_OBJC_INTEROP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user