summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmtAttr.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-12-23 05:44:43 +0000
committerCraig Topper <craig.topper@gmail.com>2015-12-23 05:44:43 +0000
commitec9be54a5fd57b7f40e221e5afe2f80fe42504a0 (patch)
treebab83a64ea6859c7ba7a8a5cd39f3d3d65c7fdac /clang/lib/Sema/SemaStmtAttr.cpp
parentc640f863e03ec8df606858e054025bec8fc2507c (diff)
downloadbcm5719-llvm-ec9be54a5fd57b7f40e221e5afe2f80fe42504a0.tar.gz
bcm5719-llvm-ec9be54a5fd57b7f40e221e5afe2f80fe42504a0.zip
[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
Diffstat (limited to 'clang/lib/Sema/SemaStmtAttr.cpp')
-rw-r--r--clang/lib/Sema/SemaStmtAttr.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaStmtAttr.cpp b/clang/lib/Sema/SemaStmtAttr.cpp
index 02d562852f8..984bd078fa0 100644
--- a/clang/lib/Sema/SemaStmtAttr.cpp
+++ b/clang/lib/Sema/SemaStmtAttr.cpp
@@ -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:
OpenPOWER on IntegriCloud