[llvm-commits] Patch to fix windows compilation warning

Villmow, Micah Micah.Villmow at amd.com
Fri Mar 16 11:08:48 PDT 2012


The following code in BitstreamWriter.h uses a negation on an unsigned value. Windows warns on this.
void EnterBlockInfoBlock(unsigned CodeWidth) {
    EnterSubblock(bitc::BLOCKINFO_BLOCK_ID, CodeWidth);
    BlockInfoCurBID = -1U;
  }

The attached patch fixes it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120316/ecfc5c47/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: windows_warning.patch
Type: application/octet-stream
Size: 540 bytes
Desc: windows_warning.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120316/ecfc5c47/attachment.obj>


More information about the llvm-commits mailing list