diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-02-16 20:03:26 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-02-16 20:03:26 +0000 |
commit | 6ba52aab96c96b6d91ed7f5844f607b32f7f41c4 (patch) | |
tree | 27539b99ac37476e61d8ebc5f8535ffe3dc765ef | |
parent | c34464ee3367de42c477561c0ae069675be8393c (diff) |
Use the correct type to hold enumeration values
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175374 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Format/TokenAnnotator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Format/TokenAnnotator.cpp b/lib/Format/TokenAnnotator.cpp index 2ddd2572dd..25b3a24704 100644 --- a/lib/Format/TokenAnnotator.cpp +++ b/lib/Format/TokenAnnotator.cpp @@ -711,7 +711,7 @@ public: ExpressionParser(AnnotatedLine &Line) : Current(&Line.First) {} /// \brief Parse expressions with the given operatore precedence. - void parse(int Precedence = prec::Unknown) { + void parse(prec::Level Precedence = prec::Unknown) { if (Precedence > prec::PointerToMember || Current == NULL) return; @@ -729,7 +729,7 @@ public: while (Current != NULL) { // Consume operators with higher precedence. - parse(Precedence + 1); + parse(prec::Level(Precedence + 1)); // At the end of the line or when an operator with higher precedence is // found, insert fake parenthesis and return. |