[llvm] r277026 - [pdb] Fix another narrowing conversion on x64 builds.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 28 12:47:04 PDT 2016


Author: zturner
Date: Thu Jul 28 14:47:04 2016
New Revision: 277026

URL: http://llvm.org/viewvc/llvm-project?rev=277026&view=rev
Log:
[pdb] Fix another narrowing conversion on x64 builds.

Modified:
    llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp

Modified: llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp?rev=277026&r1=277025&r2=277026&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp Thu Jul 28 14:47:04 2016
@@ -63,7 +63,7 @@ public:
   Error commit() const override { return Error::success(); }
 
   MsfStreamLayout layout() const {
-    return MsfStreamLayout{Data.size(), Blocks};
+    return MsfStreamLayout{static_cast<uint32_t>(Data.size()), Blocks};
   }
 
 private:




More information about the llvm-commits mailing list