More StringRef -> std::string explicit conversions

This commit is contained in:
Alex Langford
2020-03-27 14:04:22 -07:00
parent dfcd6611af
commit c04b6b6e32
2 changed files with 2 additions and 2 deletions

View File

@@ -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});
}