OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5c0a14
)
[pdb] Fix an ambiguity when writing size_t on x64 platforms.
author
Zachary Turner
<zturner@google.com>
Thu, 28 Jul 2016 19:29:52 +0000
(19:29 +0000)
committer
Zachary Turner
<zturner@google.com>
Thu, 28 Jul 2016 19:29:52 +0000
(19:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277025
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp
patch
|
blob
|
history
diff --git
a/lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp
b/lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp
index
6715f3d
..
1a0503f
100644
(file)
--- a/
lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp
+++ b/
lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp
@@
-122,7
+122,8
@@
Error PDBFileBuilder::commit(const msf::WritableStream &Buffer) {
auto DirStream =
WritableMappedBlockStream::createDirectoryStream(Layout, Buffer);
StreamWriter DW(*DirStream);
- if (auto EC = DW.writeInteger(Layout.StreamSizes.size()))
+ if (auto EC =
+ DW.writeInteger(static_cast<uint32_t>(Layout.StreamSizes.size())))
return EC;
if (auto EC = DW.writeArray(Layout.StreamSizes))