mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
More StringRef -> std::string explicit conversions
This commit is contained in:
@@ -949,7 +949,7 @@ public:
|
||||
while (data < limit) {
|
||||
DeclID genSigId = endian::readNext<uint32_t, little, unaligned>(data);
|
||||
int32_t nameLength = endian::readNext<int32_t, little, unaligned>(data);
|
||||
StringRef mangledName(reinterpret_cast<const char *>(data), nameLength);
|
||||
std::string mangledName(reinterpret_cast<const char *>(data), nameLength);
|
||||
data += nameLength;
|
||||
result.push_back({mangledName, genSigId});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user