summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-02-16 20:03:26 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-02-16 20:03:26 +0000
commit97499ed60eea4b43fd5eeaefadf20ddf85dbc9c2 (patch)
treec7711be5c5611fdb6afd584fda1e88bd1657ccff /clang/lib
parent6f37daccb8288e425e06986fedc0de8241f0dcf6 (diff)
downloadbcm5719-llvm-97499ed60eea4b43fd5eeaefadf20ddf85dbc9c2.tar.gz
bcm5719-llvm-97499ed60eea4b43fd5eeaefadf20ddf85dbc9c2.zip
Use the correct type to hold enumeration values
llvm-svn: 175374
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Format/TokenAnnotator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp
index 2ddd2572dde..25b3a24704a 100644
--- a/clang/lib/Format/TokenAnnotator.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud