mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add a new semantics attribute to disable SIL verification on a function
This provides a way to disable verification per function instead of the entire module.
This commit is contained in:
@@ -7419,6 +7419,10 @@ void SILFunction::verify(CalleeCache *calleeCache,
|
||||
if (!verificationEnabled(getModule()))
|
||||
return;
|
||||
|
||||
if (hasSemanticsAttr(semantics::NO_SIL_VERIFICATION)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Please put all checks in visitSILFunction in SILVerifier, not here. This
|
||||
// ensures that the pretty stack trace in the verifier is included with the
|
||||
// back trace when the verifier crashes.
|
||||
|
||||
Reference in New Issue
Block a user