From: Douglas Gregor Date: Wed, 19 May 2010 18:41:43 +0000 (+0000) Subject: Fill in some silly defaults to silence a GCC warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f43d52b46b600b2eb4e62550f7a6d7a78fd001b;p=clang Fill in some silly defaults to silence a GCC warning git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104140 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/StmtProfile.cpp b/lib/AST/StmtProfile.cpp index efa6f6f74a..ac3a9eeda6 100644 --- a/lib/AST/StmtProfile.cpp +++ b/lib/AST/StmtProfile.cpp @@ -621,8 +621,8 @@ void StmtProfiler::VisitCXXOperatorCallExpr(CXXOperatorCallExpr *S) { if (S->isTypeDependent()) { // Type-dependent operator calls are profiled like their underlying // syntactic operator. - UnaryOperator::Opcode UnaryOp; - BinaryOperator::Opcode BinaryOp; + UnaryOperator::Opcode UnaryOp = UnaryOperator::Extension; + BinaryOperator::Opcode BinaryOp = BinaryOperator::Comma; Stmt::StmtClass SC = DecodeOperatorCall(S, UnaryOp, BinaryOp); ID.AddInteger(SC);