diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-12-30 19:42:13 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-12-30 19:42:13 +0000 |
| commit | de9f00eecd5bede57013f47e34281f963b592450 (patch) | |
| tree | e0e3390b0afd3d845b0bd0bce61628813661ddbf | |
| parent | 1618a653f306006167c076467a9cb0d71154d2cb (diff) | |
| download | bcm5719-llvm-de9f00eecd5bede57013f47e34281f963b592450.tar.gz bcm5719-llvm-de9f00eecd5bede57013f47e34281f963b592450.zip | |
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
| -rw-r--r-- | llvm/include/llvm/DebugInfo/PDB/Raw/RawTypes.h | 2 | ||||
| -rw-r--r-- | llvm/tools/llvm-pdbdump/PdbYaml.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/DebugInfo/PDB/Raw/RawTypes.h b/llvm/include/llvm/DebugInfo/PDB/Raw/RawTypes.h index c0d63246972..d404b3994db 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Raw/RawTypes.h +++ b/llvm/include/llvm/DebugInfo/PDB/Raw/RawTypes.h @@ -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. diff --git a/llvm/tools/llvm-pdbdump/PdbYaml.cpp b/llvm/tools/llvm-pdbdump/PdbYaml.cpp index 736b5094def..34e0611e146 100644 --- a/llvm/tools/llvm-pdbdump/PdbYaml.cpp +++ b/llvm/tools/llvm-pdbdump/PdbYaml.cpp @@ -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; |

