mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Don't assume 'uuid_string_t' type is defined
It is not defined on Linux. Swift SVN r22413
This commit is contained in:
@@ -40,7 +40,7 @@ Optional<UUID> UUID::fromString(const char *s) {
|
||||
}
|
||||
|
||||
void UUID::toString(llvm::SmallVectorImpl<char> &out) const {
|
||||
out.resize(sizeof(uuid_string_t));
|
||||
out.resize(UUID::StringBufferSize);
|
||||
uuid_unparse(Value, out.data());
|
||||
// Pop off the null terminator.
|
||||
assert(out.back() == '\0' && "did not null-terminate?!");
|
||||
|
||||
Reference in New Issue
Block a user