aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-12-18 12:18:02 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-12-18 12:18:02 +0000
commit85c60db2131c6d210d4777c3d50bdaf0e69bb8bf (patch)
tree85e302b44e5da9e6efd42cd978ac96d92c392539
parent3a89e3702187c441f56b6dbe1ae544f424db40c5 (diff)
Silence gcc warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146847 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Parse/ParseExprCXX.cpp2
-rw-r--r--lib/Sema/SemaExpr.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/Parse/ParseExprCXX.cpp b/lib/Parse/ParseExprCXX.cpp
index 2e0b6a55d5..fff68b50fd 100644
--- a/lib/Parse/ParseExprCXX.cpp
+++ b/lib/Parse/ParseExprCXX.cpp
@@ -1022,7 +1022,7 @@ Parser::ParseCXXPseudoDestructor(ExprArg Base, SourceLocation OpLoc,
if (Tok.is(tok::kw_decltype) && !FirstTypeName.isValid() && SS.isEmpty()) {
DeclSpec DS(AttrFactory);
- SourceLocation EndLoc = ParseDecltypeSpecifier(DS);
+ ParseDecltypeSpecifier(DS);
if (DS.getTypeSpecType() == TST_error)
return ExprError();
return Actions.ActOnPseudoDestructorExpr(getCurScope(), Base, OpLoc,
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 552d0e7f21..bc1e0a27b4 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -9262,7 +9262,8 @@ bool Sema::VerifyIntegerConstantExpression(const Expr *E, llvm::APSInt *Result,
if (!Folded || !AllowFold) {
Diag(E->getSourceRange().getBegin(),
- DiagID ? DiagID : diag::err_expr_not_ice) << E->getSourceRange();
+ DiagID ? DiagID : unsigned(diag::err_expr_not_ice))
+ << E->getSourceRange();
// We only show the notes if they're not the usual "invalid subexpression"
// or if they are actually in a subexpression.