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(
4564
4564
}
4565
4565
4566
4566
// If the regular result type is void, there is nothing to explode
4567
- if (!resultType. isVoid ()) {
4567
+ if (!nativeSchema. empty ()) {
4568
4568
Explosion resultExplosion;
4569
4569
if (auto *structTy =
4570
4570
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 {
252
252
struct LoadableGeneric < E> : Error { }
253
253
254
254
func 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