Skip to content

Commit 41f1285

Browse files
authored
Don't use lookupSymbol when SWIFT_RUNTIME_MACHO_NO_DYLD (#33792)
1 parent 3332df6 commit 41f1285

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/runtime/MetadataLookup.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,11 +975,13 @@ _gatherGenericParameters(const ContextDescriptor *context,
975975

976976
str += "_gatherGenericParameters: context: ";
977977

978+
#if !defined(SWIFT_RUNTIME_MACHO_NO_DYLD)
978979
SymbolInfo contextInfo;
979980
if (lookupSymbol(context, &contextInfo)) {
980981
str += contextInfo.symbolName.get();
981982
str += " ";
982983
}
984+
#endif
983985

984986
char *contextStr;
985987
swift_asprintf(&contextStr, "%p", context);

0 commit comments

Comments
 (0)