File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -4564,7 +4564,7 @@ void CallEmission::emitToUnmappedExplosionWithDirectTypedError(
45644564 }
45654565
45664566 // If the regular result type is void, there is nothing to explode
4567- if (!resultType. isVoid ()) {
4567+ if (!nativeSchema. empty ()) {
45684568 Explosion resultExplosion;
45694569 if (auto *structTy =
45704570 dyn_cast<llvm::StructType>(nativeSchema.getExpandedType (IGF.IGM ))) {
Original file line number Diff line number Diff line change @@ -252,3 +252,16 @@ public func reabstractAsyncVoidThrowsNever() async {
252252struct LoadableGeneric < E> : Error { }
253253
254254func throwsLoadableGeneric< E> ( _: E ) throws ( LoadableGeneric< E> ) { }
255+
256+ @inline ( never)
257+ func throwError( ) throws ( SmallError) -> Never {
258+ throw SmallError ( x: 1 )
259+ }
260+
261+ func conditionallyCallsThrowError( b: Bool ) throws ( SmallError) -> Int {
262+ if b {
263+ try throwError ( )
264+ } else {
265+ return 0
266+ }
267+ }
You can’t perform that action at this time.
0 commit comments