]> granicus.if.org Git - clang/commitdiff
[Sema] Use available enum types instead of integers. As one is used in a switch,...
authorCraig Topper <craig.topper@gmail.com>
Wed, 23 Dec 2015 05:44:43 +0000 (05:44 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 23 Dec 2015 05:44:43 +0000 (05:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256318 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmtAttr.cpp

index 02d562852f83ea6cf2214efa767eee502adca829..984bd078fa036fbd00bb2cd55d9e96290f56a1ed 100644 (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: