mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SwiftToCxx] Trowing Swift::Error instead of NaiveException
This commit is contained in:
@@ -695,7 +695,7 @@ void DeclAndTypeClangFunctionPrinter::printCxxThunkBody(
|
||||
// Create the condition and the statement to throw an exception.
|
||||
if (hasThrows) {
|
||||
os << " if (opaqueError != nullptr)\n";
|
||||
os << " throw (swift::_impl::NaiveException(\"Exception\"));\n";
|
||||
os << " throw (swift::_impl::swift::Error(opaqueError));\n";
|
||||
}
|
||||
|
||||
// Return the function result value if it doesn't throw.
|
||||
|
||||
Reference in New Issue
Block a user