mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The verify-di-hole SILVerifier pass is very useful in catching incorrectly set SILDebugScopes, but it can be very tedious to track down the root cause of a verification failure. This patch replicates much of its functionality inside an assertion in SILBuilder, which will result in a backtrace pointing directly to where the offending scope is being set.
2.1 KiB
2.1 KiB