mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Adjust printing to take into account special DeclNames
Print DeclBaseNames using a new userFacingStr() method to prepare for DeclBaseNames that are not backed by Identifiers
This commit is contained in:
@@ -340,7 +340,8 @@ class FieldTypeMetadataBuilder : public ReflectionMetadataBuilder {
|
||||
}
|
||||
|
||||
if (IGM.IRGen.Opts.EnableReflectionNames) {
|
||||
auto fieldName = IGM.getAddrOfFieldName(value->getNameStr());
|
||||
auto name = value->getBaseName().getIdentifier().str();
|
||||
auto fieldName = IGM.getAddrOfFieldName(name);
|
||||
B.addRelativeAddress(fieldName);
|
||||
} else {
|
||||
B.addInt32(0);
|
||||
|
||||
Reference in New Issue
Block a user