forked from OSchip/llvm-project
[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:
parent
c640f863e0
commit
ec9be54a5f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue