mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Always print UUIDs using uppercase.
This changes UUID::toString() to always print using upper case. The previous behavior was platform specific, resulting in difficulty checking UUIDs in tests. Serialization/basic_sil.swift and SIL/Parser/basic.sil are now expected to pass on Linux. This resolves bug SR-417.
This commit is contained in:
@@ -41,7 +41,7 @@ Optional<UUID> UUID::fromString(const char *s) {
|
||||
|
||||
void UUID::toString(llvm::SmallVectorImpl<char> &out) const {
|
||||
out.resize(UUID::StringBufferSize);
|
||||
uuid_unparse(Value, out.data());
|
||||
uuid_unparse_upper(Value, out.data());
|
||||
// Pop off the null terminator.
|
||||
assert(out.back() == '\0' && "did not null-terminate?!");
|
||||
out.pop_back();
|
||||
|
||||
Reference in New Issue
Block a user