[llvm-commits] Patch to fix windows compilation warning

Bill Wendling wendling at apple.com
Tue Mar 20 02:29:24 PDT 2012


LGTM!

-bw

On Mar 16, 2012, at 11:08 AM, Villmow, Micah wrote:

> 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.
> <windows_warning.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list