diff options
author | Zachary Turner <zturner@google.com> | 2017-02-18 01:35:33 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-02-18 01:35:33 +0000 |
commit | 181fe17b6f0f434d39b32b90b12844f7a9b55a3b (patch) | |
tree | a9c68cad05c7c6c643e75369b57019c314dce048 /llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp | |
parent | 0aef305f352235fe66d44e8f253b3b09d27a1b10 (diff) | |
download | bcm5719-llvm-181fe17b6f0f434d39b32b90b12844f7a9b55a3b.tar.gz bcm5719-llvm-181fe17b6f0f434d39b32b90b12844f7a9b55a3b.zip |
Don't assume little endian in StreamReader / StreamWriter.
In an effort to generalize this so it can be used by more than
just PDB code, we shouldn't assume little endian.
llvm-svn: 295525
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp b/llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp index 5d15e62d3e4..f2f25c2bfeb 100644 --- a/llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp @@ -236,7 +236,7 @@ Error DbiStream::initializeSectionContributionData() { return Error::success(); StreamReader SCReader(SecContrSubstream); - if (auto EC = SCReader.readEnum(SectionContribVersion)) + if (auto EC = SCReader.readEnum(SectionContribVersion, llvm::support::little)) return EC; if (SectionContribVersion == DbiSecContribVer60) |