]> granicus.if.org Git - clang/commitdiff
Fill in some silly defaults to silence a GCC warning
authorDouglas Gregor <dgregor@apple.com>
Wed, 19 May 2010 18:41:43 +0000 (18:41 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 19 May 2010 18:41:43 +0000 (18:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104140 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/StmtProfile.cpp

index efa6f6f74a612569af140e22c32971b1ad03e1a0..ac3a9eeda66f2bd7f16cf392b73e85ed7a9ef5dd 100644 (file)
@@ -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);