summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExprConstant.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-12-21 19:36:37 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-12-21 19:36:37 +0000
commit4a39e49373cf3f754948144ef6f723c3679fe23d (patch)
tree5556702c38b391517eca997f19e2658e0711b21c /clang/lib/AST/ExprConstant.cpp
parent0ffba93e51a8bad9b1ae0a9b27eafea3b423f129 (diff)
downloadbcm5719-llvm-4a39e49373cf3f754948144ef6f723c3679fe23d.tar.gz
bcm5719-llvm-4a39e49373cf3f754948144ef6f723c3679fe23d.zip
Cast enumerators from different anonymous enums to unsigned, to appease gcc
llvm-svn: 147067
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r--clang/lib/AST/ExprConstant.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 698761f1171..d4828e34183 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -1150,8 +1150,8 @@ static bool ExtractSubobject(EvalInfo &Info, const Expr *E,
}
if (Sub.OnePastTheEnd) {
Info.Diag(E->getExprLoc(), Info.getLangOpts().CPlusPlus0x ?
- diag::note_constexpr_read_past_end :
- diag::note_invalid_subexpr_in_const_expr);
+ (unsigned)diag::note_constexpr_read_past_end :
+ (unsigned)diag::note_invalid_subexpr_in_const_expr);
return false;
}
if (Sub.Entries.empty())
@@ -1170,8 +1170,8 @@ static bool ExtractSubobject(EvalInfo &Info, const Expr *E,
// Note, it should not be possible to form a pointer with a valid
// designator which points more than one past the end of the array.
Info.Diag(E->getExprLoc(), Info.getLangOpts().CPlusPlus0x ?
- diag::note_constexpr_read_past_end :
- diag::note_invalid_subexpr_in_const_expr);
+ (unsigned)diag::note_constexpr_read_past_end :
+ (unsigned)diag::note_invalid_subexpr_in_const_expr);
return false;
}
if (O->getArrayInitializedElts() > Index)
OpenPOWER on IntegriCloud