forked from OSchip/llvm-project
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:
parent
1618a653f3
commit
de9f00eecd
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue