fhahn added a comment. This commit should not change any existing functionality, but I think technically it's not really a NFC, as it restricts the APIs of the functions taking various enum values as unsigned previously. https://reviews.llvm.org/D35882