r223064 - Add missing 'break's, found by inspection. No functionality change; the

Richard Smith richard-llvm at metafoo.co.uk
Mon Dec 1 10:59:10 PST 2014


Author: rsmith
Date: Mon Dec  1 12:59:10 2014
New Revision: 223064

URL: http://llvm.org/viewvc/llvm-project?rev=223064&view=rev
Log:
Add missing 'break's, found by inspection. No functionality change; the
fallthrough happened to do the right thing in both cases.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=223064&r1=223063&r2=223064&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Mon Dec  1 12:59:10 2014
@@ -3270,6 +3270,7 @@ void CodeGenModule::EmitTopLevelDecl(Dec
     if (DebugInfo &&
         Spec->getSpecializationKind() == TSK_ExplicitInstantiationDefinition)
       DebugInfo->completeTemplateDefinition(*Spec);
+    break;
   }
 
   default:
@@ -3277,6 +3278,7 @@ void CodeGenModule::EmitTopLevelDecl(Dec
     // 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;
   }
 }
 





More information about the cfe-commits mailing list