Skip to content

Commit 2b8d1be

Browse files
committed
Backtracing: Suppress a "switch covers known cases" warning.
1 parent e65aab7 commit 2b8d1be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stdlib/public/RuntimeModule/Backtrace.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,11 @@ extension Backtrace {
428428
return Backtrace(architecture: context.architecture,
429429
frames: unwinder.dropFirst(offset),
430430
images: images)
431+
432+
@unknown default:
433+
// This will never execute but its needed to avoid warnings when
434+
// the Backtrace library is built with library evolution.
435+
fatalError()
431436
}
432437
}
433438
}

0 commit comments

Comments
 (0)