Fix a couple of cases of (innocuous) unmarked fallthrough. At least one of these

was unintentional. Found by -Wimplicit-fallthrough, patch by Alexander Kornienko!

llvm-svn: 156082
This commit is contained in:
Richard Smith 2012-05-03 17:56:49 +00:00
parent 9933e3ac88
commit 3bddb62daa
2 changed files with 2 additions and 0 deletions

View File

@ -1400,6 +1400,7 @@ bool RecursiveASTVisitor<Derived>::TraverseClassInstantiations(
case TSK_Undeclared:
case TSK_ImplicitInstantiation:
TRY_TO(TraverseDecl(SD));
break;
// We don't need to do anything on an explicit instantiation
// or explicit specialization because there will be an explicit

View File

@ -175,6 +175,7 @@ public:
switch (kind) {
case PrintErrno:
assert(IsPrintf);
return false;
case PercentArg:
return false;
default: