[llvm] r277025 - [pdb] Fix an ambiguity when writing size_t on x64 platforms.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 28 12:29:52 PDT 2016
Author: zturner
Date: Thu Jul 28 14:29:52 2016
New Revision: 277025
URL: http://llvm.org/viewvc/llvm-project?rev=277025&view=rev
Log:
[pdb] Fix an ambiguity when writing size_t on x64 platforms.
Modified:
llvm/trunk/lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp
Modified: llvm/trunk/lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp?rev=277025&r1=277024&r2=277025&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp Thu Jul 28 14:29:52 2016
@@ -122,7 +122,8 @@ Error PDBFileBuilder::commit(const msf::
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))
More information about the llvm-commits
mailing list