Fix windows compilation warning. Patch by Micah.
authorJan Sjödin <jan_sjodin@yahoo.com>
Wed, 21 Mar 2012 20:00:30 +0000 (20:00 +0000)
committerJan Sjödin <jan_sjodin@yahoo.com>
Wed, 21 Mar 2012 20:00:30 +0000 (20:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153215 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Bitcode/BitstreamWriter.h

index 42c68aac7d7b84e8e0c17505f54fd782fbb53236..475da133f8a898605457c63d48662f686fcd27bf 100644 (file)
@@ -501,7 +501,7 @@ public:
   /// EnterBlockInfoBlock - Start emitting the BLOCKINFO_BLOCK.
   void EnterBlockInfoBlock(unsigned CodeWidth) {
     EnterSubblock(bitc::BLOCKINFO_BLOCK_ID, CodeWidth);
-    BlockInfoCurBID = -1U;
+    BlockInfoCurBID = ~0U;
   }
 private:
   /// SwitchToBlockID - If we aren't already talking about the specified block