Skip to content
Snippets Groups Projects
Commit d39d23e6 authored by Richard Smith's avatar Richard Smith
Browse files

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

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


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156082 91177308-0d34-0410-b5e6-96231b3b80d8
parent 3144749f
No related branches found
No related tags found
No related merge requests found
...@@ -1400,6 +1400,7 @@ bool RecursiveASTVisitor<Derived>::TraverseClassInstantiations( ...@@ -1400,6 +1400,7 @@ bool RecursiveASTVisitor<Derived>::TraverseClassInstantiations(
case TSK_Undeclared: case TSK_Undeclared:
case TSK_ImplicitInstantiation: case TSK_ImplicitInstantiation:
TRY_TO(TraverseDecl(SD)); TRY_TO(TraverseDecl(SD));
break;
// We don't need to do anything on an explicit instantiation // We don't need to do anything on an explicit instantiation
// or explicit specialization because there will be an explicit // or explicit specialization because there will be an explicit
......
...@@ -175,6 +175,7 @@ public: ...@@ -175,6 +175,7 @@ public:
switch (kind) { switch (kind) {
case PrintErrno: case PrintErrno:
assert(IsPrintf); assert(IsPrintf);
return false;
case PercentArg: case PercentArg:
return false; return false;
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment