зеркало из https://github.com/microsoft/clang-1.git
Silence gcc warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146847 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
3a89e37021
Коммит
85c60db213
|
@ -1022,7 +1022,7 @@ Parser::ParseCXXPseudoDestructor(ExprArg Base, SourceLocation OpLoc,
|
||||||
|
|
||||||
if (Tok.is(tok::kw_decltype) && !FirstTypeName.isValid() && SS.isEmpty()) {
|
if (Tok.is(tok::kw_decltype) && !FirstTypeName.isValid() && SS.isEmpty()) {
|
||||||
DeclSpec DS(AttrFactory);
|
DeclSpec DS(AttrFactory);
|
||||||
SourceLocation EndLoc = ParseDecltypeSpecifier(DS);
|
ParseDecltypeSpecifier(DS);
|
||||||
if (DS.getTypeSpecType() == TST_error)
|
if (DS.getTypeSpecType() == TST_error)
|
||||||
return ExprError();
|
return ExprError();
|
||||||
return Actions.ActOnPseudoDestructorExpr(getCurScope(), Base, OpLoc,
|
return Actions.ActOnPseudoDestructorExpr(getCurScope(), Base, OpLoc,
|
||||||
|
|
|
@ -9262,7 +9262,8 @@ bool Sema::VerifyIntegerConstantExpression(const Expr *E, llvm::APSInt *Result,
|
||||||
|
|
||||||
if (!Folded || !AllowFold) {
|
if (!Folded || !AllowFold) {
|
||||||
Diag(E->getSourceRange().getBegin(),
|
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"
|
// We only show the notes if they're not the usual "invalid subexpression"
|
||||||
// or if they are actually in a subexpression.
|
// or if they are actually in a subexpression.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче