This is an archive of the discontinued LLVM Phabricator instance.

[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

Repository
rL LLVM

Event Timeline

miscco created this revision.Aug 15 2018, 7:00 AM
RKSimon accepted this revision.Aug 15 2018, 8:01 AM

LGTM - thanks

This revision is now accepted and ready to land.Aug 15 2018, 8:01 AM

I do not have commit access. Would you be so kind to push it?

This revision was automatically updated to reflect the committed changes.