[PATCH] D52137: Added warning for unary minus used with unsigned type

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 15 11:10:37 PDT 2018


xbolva00 added a subscriber: RKSimon.
xbolva00 added a comment.

/home/xbolva00/LLVM/build/lib/clang/8.0.0/include/bmiintrin.h:312:16: error: unary minus operator applied to type 'unsigned long long', result value is still unsigned

  return __X & -__X;

@RKSimon what do you think?


Repository:
  rC Clang

https://reviews.llvm.org/D52137





More information about the cfe-commits mailing list