[llvm] r258084 - Fixed MSVC Win64 warning of implicit conversion of 32-bit shift to 64-bits.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 18 13:11:19 PST 2016


Author: rksimon
Date: Mon Jan 18 15:11:19 2016
New Revision: 258084

URL: http://llvm.org/viewvc/llvm-project?rev=258084&view=rev
Log:
Fixed MSVC Win64 warning of implicit conversion of 32-bit shift to 64-bits.

Modified:
    llvm/trunk/lib/Target/Hexagon/RDFGraph.cpp

Modified: llvm/trunk/lib/Target/Hexagon/RDFGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/RDFGraph.cpp?rev=258084&r1=258083&r2=258084&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/RDFGraph.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/RDFGraph.cpp Mon Jan 18 15:11:19 2016
@@ -315,7 +315,7 @@ void NodeAllocator::startNewBlock() {
   // Check if the block index is still within the allowed range, i.e. less
   // than 2^N, where N is the number of bits in NodeId for the block index.
   // BitsPerIndex is the number of bits per node index.
-  assert((Blocks.size() < (1U << (8*sizeof(NodeId)-BitsPerIndex))) &&
+  assert((Blocks.size() < ((size_t)1 << (8*sizeof(NodeId)-BitsPerIndex))) &&
          "Out of bits for block index");
   ActiveEnd = P;
 }




More information about the llvm-commits mailing list