From 78dd725cded98e0a736fb8ea5db6c4e7d1b819e7 Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Wed, 24 Sep 2014 03:53:56 +0000 Subject: Fix an edge case with BinaryOperator's in -Wuninitialized. Add testcases for the other visitors as well. llvm-svn: 218366 --- clang/lib/Sema/SemaDecl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'clang/lib/Sema/SemaDecl.cpp') diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index b3098abbb09..71017f4f9df 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -8359,9 +8359,11 @@ namespace { } if (BinaryOperator *BO = dyn_cast(E)) { - if (BO->getOpcode() == BO_Comma) + if (BO->getOpcode() == BO_Comma) { + Visit(BO->getLHS()); HandleValue(BO->getRHS()); - return; + return; + } } if (isa(E)) { -- cgit v1.2.3