Skip to content

Commit 855e228

Browse files
committed
[Metadata/TypeByName] Don't try to check for dot syntax in presence of symbolic references
If symbolic references are present in the mangled name don't try to check for convenience dot syntax as well since they can't appear together.
1 parent 642cbba commit 855e228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/MetadataLookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ swift::_getTypeByMangledName(StringRef typeName,
851851
return llvm::StringRef::npos;
852852
if (typeName.find('.', dotPos + 1) != llvm::StringRef::npos)
853853
return llvm::StringRef::npos;
854-
if (typeName.find('$') != llvm::StringRef::npos)
854+
if (typeName.find('\1') != llvm::StringRef::npos)
855855
return llvm::StringRef::npos;
856856
return dotPos;
857857
};

0 commit comments

Comments
 (0)