Add missing 'break's, found by inspection. No functionality change; the
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 1 Dec 2014 18:59:10 +0000 (18:59 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 1 Dec 2014 18:59:10 +0000 (18:59 +0000)
fallthrough happened to do the right thing in both cases.

llvm-svn: 223064

clang/lib/CodeGen/CodeGenModule.cpp

index 497aac55e59bc7e562bc11635e154d21e36fd612..cefc2e91584117608f0248d638163d1746f1bf34 100644 (file)
@@ -3270,6 +3270,7 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) {
     if (DebugInfo &&
         Spec->getSpecializationKind() == TSK_ExplicitInstantiationDefinition)
       DebugInfo->completeTemplateDefinition(*Spec);
+    break;
   }
 
   default:
@@ -3277,6 +3278,7 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) {
     // non-top-level decl.  FIXME: Would be nice to have an isTopLevelDeclKind
     // function. Need to recode Decl::Kind to do that easily.
     assert(isa<TypeDecl>(D) && "Unsupported decl kind");
+    break;
   }
 }