[PATCH] D22441: Fix isShiftedInt and isShiftedUint for widths > 32.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 18 03:57:04 PDT 2016


RKSimon added a subscriber: RKSimon.
RKSimon reopened this revision.
RKSimon added a comment.

This has introduced a compile warning on VS2015 builds:

1> MathExtrasTest.cpp
1> .\llvm\include\llvm/Support/MathExtras.h(296): warning C4293: '<<': shift count negative or too big, undefined behavior
1> .\llvm\include\llvm/Support/MathExtras.h(322): note: see reference to function template instantiation 'bool llvm::isUInt<64>(uint64_t)' being compiled
1> .\llvm\unittests\Support\MathExtrasTest.cpp(401): note: see reference to function template instantiation 'bool llvm::isShiftedUInt<1,63>(uint64_t)' being compiled


Repository:
  rL LLVM

https://reviews.llvm.org/D22441





More information about the llvm-commits mailing list