summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtProfile.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-19 18:41:43 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-19 18:41:43 +0000
commit0e0f67ec95cb0846b474b5da0e161cd2b544bad2 (patch)
treedc360d36f2865694d042da692f40ff99bf8281f7 /clang/lib/AST/StmtProfile.cpp
parenta72a4e3229e2f241140d27373c1327f182b54054 (diff)
downloadbcm5719-llvm-0e0f67ec95cb0846b474b5da0e161cd2b544bad2.tar.gz
bcm5719-llvm-0e0f67ec95cb0846b474b5da0e161cd2b544bad2.zip
Fill in some silly defaults to silence a GCC warning
llvm-svn: 104140
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r--clang/lib/AST/StmtProfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp
index efa6f6f74a6..ac3a9eeda66 100644
--- a/clang/lib/AST/StmtProfile.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud