From 9be88403e965cc49af76c9d33d818781d44b333e Mon Sep 17 00:00:00 2001 From: Francois Pichet Date: Wed, 8 Sep 2010 23:47:05 +0000 Subject: [PATCH] Fix warnings caused by new CXXUuidofExprClass enumerator. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113444 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/ExprConstant.cpp | 1 + lib/Checker/GRExprEngine.cpp | 1 + lib/CodeGen/Mangle.cpp | 3 ++- tools/libclang/CXCursor.cpp | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 089caf23c9..04aea9e9b9 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -2379,6 +2379,7 @@ static ICEDiag CheckICE(const Expr* E, ASTContext &Ctx) { case Expr::CXXMemberCallExprClass: case Expr::CXXDynamicCastExprClass: case Expr::CXXTypeidExprClass: + case Expr::CXXUuidofExprClass: case Expr::CXXNullPtrLiteralExprClass: case Expr::CXXThisExprClass: case Expr::CXXThrowExprClass: diff --git a/lib/Checker/GRExprEngine.cpp b/lib/Checker/GRExprEngine.cpp index feb826e4a6..1c8a2d61b9 100644 --- a/lib/Checker/GRExprEngine.cpp +++ b/lib/Checker/GRExprEngine.cpp @@ -773,6 +773,7 @@ void GRExprEngine::Visit(const Stmt* S, ExplodedNode* Pred, case Stmt::CXXThrowExprClass: case Stmt::CXXTryStmtClass: case Stmt::CXXTypeidExprClass: + case Stmt::CXXUuidofExprClass: case Stmt::CXXUnresolvedConstructExprClass: case Stmt::CXXScalarValueInitExprClass: case Stmt::DependentScopeDeclRefExprClass: diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp index b836f016ff..a70a52d94e 100644 --- a/lib/CodeGen/Mangle.cpp +++ b/lib/CodeGen/Mangle.cpp @@ -1617,7 +1617,8 @@ void CXXNameMangler::mangleExpression(const Expr *E, unsigned Arity) { case Expr::StmtExprClass: case Expr::TypesCompatibleExprClass: case Expr::UnaryTypeTraitExprClass: - case Expr::VAArgExprClass: { + case Expr::VAArgExprClass: + case Expr::CXXUuidofExprClass: { // As bad as this diagnostic is, it's better than crashing. Diagnostic &Diags = Context.getDiags(); unsigned DiagID = Diags.getCustomDiagID(Diagnostic::Error, diff --git a/tools/libclang/CXCursor.cpp b/tools/libclang/CXCursor.cpp index a8fd049c99..9b3ecbf0d9 100644 --- a/tools/libclang/CXCursor.cpp +++ b/tools/libclang/CXCursor.cpp @@ -124,6 +124,7 @@ CXCursor cxcursor::MakeCXCursor(Stmt *S, Decl *Parent, ASTUnit *TU) { case Stmt::CXXConstCastExprClass: case Stmt::CXXFunctionalCastExprClass: case Stmt::CXXTypeidExprClass: + case Stmt::CXXUuidofExprClass: case Stmt::CXXBoolLiteralExprClass: case Stmt::CXXNullPtrLiteralExprClass: case Stmt::CXXThisExprClass: -- 2.40.0