[ADT] Replace APInt::WORD_MAX with APInt::WORDTYPE_MAX
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 16 Aug 2018 11:08:23 +0000 (11:08 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 16 Aug 2018 11:08:23 +0000 (11:08 +0000)
commit8f46505beb83c39c3fafca55d0d740dc2f58f90e
treeb54ab37c7728e44f79ffb672af49f1f7ccedaa3d
parentd6bd5983eed46607448dc1901f94691ba241d4ac
[ADT] Replace APInt::WORD_MAX with APInt::WORDTYPE_MAX

The windows SDK defines WORD_MAX, so any poor soul that wants to use LLVM in a project that depends on the windows SDK gets a build error.

Given that it actually describes the maximal value of WordType, it actually fits even better than WORD_MAX

Patch by: @miscco

Differential Revision: https://reviews.llvm.org/D50777

llvm-svn: 339863
llvm/include/llvm/ADT/APInt.h
llvm/lib/Support/APInt.cpp