diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2011-12-21 19:36:37 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2011-12-21 19:36:37 +0000 |
commit | aa5d533427d803e52ee42b250ffd6645ef5ccb0f (patch) | |
tree | 9f24d75abfd30fd7e06622aaac779a824be3eed2 /lib/AST/ExprConstant.cpp | |
parent | 893d414534273e153e12aef39a1ad991c6fa94c0 (diff) |
Cast enumerators from different anonymous enums to unsigned, to appease gcc
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147067 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ExprConstant.cpp')
-rw-r--r-- | lib/AST/ExprConstant.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 698761f117..d4828e3418 100644 --- a/lib/AST/ExprConstant.cpp +++ b/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) |