summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-12-01 18:59:10 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-12-01 18:59:10 +0000
commita634ff219424f51a4b1aa1b468911f448dc43b04 (patch)
treef9a6b5cc2d0624ff55287146515896fc828fe321 /clang/lib/CodeGen/CodeGenModule.cpp
parent178e6548f59ac08c566d2e24be7541e2af8a27bc (diff)
downloadbcm5719-llvm-a634ff219424f51a4b1aa1b468911f448dc43b04.tar.gz
bcm5719-llvm-a634ff219424f51a4b1aa1b468911f448dc43b04.zip
Add missing 'break's, found by inspection. No functionality change; the
fallthrough happened to do the right thing in both cases. llvm-svn: 223064
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 497aac55e59..cefc2e91584 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/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<TypeDecl>(D) && "Unsupported decl kind");
+ break;
}
}
OpenPOWER on IntegriCloud