Skip to content

Commit d80a405

Browse files
committed
[Runtime] Clean up verifyMangledNameRoundtrip comment.
1 parent 6b80da6 commit d80a405

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

stdlib/public/runtime/Metadata.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5648,13 +5648,8 @@ static bool referencesAnonymousContext(Demangle::Node *node) {
56485648
}
56495649

56505650
void swift::verifyMangledNameRoundtrip(const Metadata *metadata) {
5651-
// Enable verification when a special environment variable is set.
5652-
// Some metatypes crash when going through the mangler or demangler. A
5653-
// lot of tests currently trigger those crashes, resulting in failing
5654-
// tests which are still usefully testing something else. This
5655-
// variable lets us easily turn on verification to find and fix these
5656-
// bugs. Remove this and leave it permanently on once everything works
5657-
// with it enabled.
5651+
// Enable verification when a special environment variable is set. This helps
5652+
// us stress test the mangler/demangler and type lookup machinery.
56585653
if (!swift::runtime::environment::SWIFT_ENABLE_MANGLED_NAME_VERIFICATION())
56595654
return;
56605655

0 commit comments

Comments
 (0)