From: Richard Smith Date: Mon, 1 Dec 2014 18:59:10 +0000 (+0000) Subject: Add missing 'break's, found by inspection. No functionality change; the X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=778ed7b8122a2d05d58b1f693e927c518e74155d;p=clang Add missing 'break's, found by inspection. No functionality change; the fallthrough happened to do the right thing in both cases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223064 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 497aac55e5..cefc2e9158 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -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(D) && "Unsupported decl kind"); + break; } }