[Sema] Use available enum types instead of integers. As one is used in a switch, this makes the compiler ensure the switch is fully covered. NFC

llvm-svn: 256318
This commit is contained in:
Craig Topper 2015-12-23 05:44:43 +00:00
parent c640f863e0
commit ec9be54a5f
1 changed files with 2 additions and 3 deletions

View File

@ -150,9 +150,8 @@ CheckForIncompatibleAttributes(Sema &S,
if (!LH)
continue;
int Option = LH->getOption();
int Category;
enum { Vectorize, Interleave, Unroll };
LoopHintAttr::OptionType Option = LH->getOption();
enum { Vectorize, Interleave, Unroll } Category;
switch (Option) {
case LoopHintAttr::Vectorize:
case LoopHintAttr::VectorizeWidth: