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
Paths
| Differential D50777
[ADT] Replace APInt::WORD_MAX with APInt::WORDTYPE_MAX ClosedPublic Authored by miscco on Aug 15 2018, 7:00 AM.
Details Summary 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
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 15 2018, 8:01 AM Closed by commit rL339863: [ADT] Replace APInt::WORD_MAX with APInt::WORDTYPE_MAX (authored by RKSimon). · Explain WhyAug 16 2018, 4:09 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 160996 llvm/trunk/include/llvm/ADT/APInt.h
llvm/trunk/lib/Support/APInt.cpp
|