summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-12-19 22:06:11 +0000
committerAdrian Prantl <aprantl@apple.com>2017-12-19 22:06:11 +0000
commitf3b3ccda590c14513ff372bb9a26ae5d644fb0bc (patch)
treeb96082db4e4367c26bd2bc54c10e8f6f42aeeaf3 /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
parent0e6694d111b6d3c0438f2b72fab6d10b7b4eab6c (diff)
downloadbcm5719-llvm-f3b3ccda590c14513ff372bb9a26ae5d644fb0bc.tar.gz
bcm5719-llvm-f3b3ccda590c14513ff372bb9a26ae5d644fb0bc.zip
Silence a bunch of implicit fallthrough warnings
llvm-svn: 321115
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiateDecl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
index f627f6017f3..3febf5debee 100644
--- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -5195,7 +5195,9 @@ void Sema::PerformPendingInstantiations(bool LocalOnly) {
case TSK_ExplicitInstantiationDefinition:
// We only need an instantiation if the pending instantiation *is* the
// explicit instantiation.
- if (Var != Var->getMostRecentDecl()) continue;
+ if (Var != Var->getMostRecentDecl())
+ continue;
+ break;
case TSK_ImplicitInstantiation:
break;
}
OpenPOWER on IntegriCloud