[PATCH] D18521: Add parenthesis to silence warning

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 28 13:08:14 PDT 2016


got a link to the build error/buildbot?

On Mon, Mar 28, 2016 at 12:34 PM, Nirav Dave via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> niravd created this revision.
> niravd added a reviewer: dexonsmith.
> niravd added a subscriber: llvm-commits.
>
> Add parenthesis to BitstreamReader.h to silence compilation warning
>
> http://reviews.llvm.org/D18521
>
> Files:
>   include/llvm/Bitcode/BitstreamReader.h
>
> Index: include/llvm/Bitcode/BitstreamReader.h
> ===================================================================
> --- include/llvm/Bitcode/BitstreamReader.h
> +++ include/llvm/Bitcode/BitstreamReader.h
> @@ -367,7 +367,7 @@
>
>      // Round to word boundary.
>      if (Limit & (sizeof(word_t) - 1))
> -      Limit += sizeof(word_t) - Limit & (sizeof(word_t) - 1);
> +      Limit += sizeof(word_t) - (Limit & (sizeof(word_t) - 1));
>
>      // Only change size if the new one is lower.
>      if (!Size || Size > Limit)
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160328/f268dd7e/attachment.html>


More information about the llvm-commits mailing list