DebugInfo: change the PDB UniqueId type to uint8_t

Since we type-erase the Windows GUID structure, use unsigned bytes
rather than char, which may be signed (-fsigned-char).  NFC

llvm-svn: 290765
This commit is contained in:
Saleem Abdulrasool 2016-12-30 19:42:13 +00:00
parent 1618a653f3
commit de9f00eecd
2 changed files with 2 additions and 2 deletions

View File

@ -263,7 +263,7 @@ struct ModuleInfoHeader {
/// is abstracted here for the purposes of non-Windows platforms that don't have
/// the GUID structure defined.
struct PDB_UniqueId {
char Guid[16];
uint8_t Guid[16];
};
// The header preceeding the global TPI stream.

View File

@ -57,7 +57,7 @@ template <> struct ScalarTraits<llvm::pdb::PDB_UniqueId> {
Scalar[24] != '-')
return "GUID sections are not properly delineated with dashes";
char *OutBuffer = S.Guid;
uint8_t *OutBuffer = S.Guid;
for (auto Iter = Scalar.begin(); Iter != Scalar.end();) {
if (*Iter == '-' || *Iter == '{' || *Iter == '}') {
++Iter;