We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ffc746 + 1d2ea6f commit 66303f6Copy full SHA for 66303f6
stdlib/public/runtime/Metadata.cpp
@@ -7775,6 +7775,14 @@ void swift::verifyMangledNameRoundtrip(const Metadata *metadata) {
7775
7776
Demangle::StackAllocatedDemangler<1024> Dem;
7777
auto node = _swift_buildDemanglingForMetadata(metadata, Dem);
7778
+ if (!node) {
7779
+ swift::warning(
7780
+ RuntimeErrorFlagNone,
7781
+ "Failed to build demangling to verify roundtrip for metadata %p\n",
7782
+ metadata);
7783
+ return;
7784
+ }
7785
+
7786
// If the mangled node involves types in an AnonymousContext, then by design,
7787
// it cannot be looked up by name.
7788
if (referencesAnonymousContext(node))
0 commit comments