aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2012-10-03 06:12:27 +0000
committerNico Weber <nicolasweber@gmx.de>2012-10-03 06:12:27 +0000
commit88a374ad85eec5a47bd172aa7b765d24fdf01690 (patch)
tree47228b516a2000510b53152d16714271234fe901
parent4b70070dc58e81980239ef2e9bcecef1210ae147 (diff)
Replace a default: with an explicit list of cases. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165091 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AST/MicrosoftMangle.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/AST/MicrosoftMangle.cpp b/lib/AST/MicrosoftMangle.cpp
index 380c737e7e..26b411952c 100644
--- a/lib/AST/MicrosoftMangle.cpp
+++ b/lib/AST/MicrosoftMangle.cpp
@@ -810,7 +810,12 @@ MicrosoftCXXNameMangler::mangleTemplateArgs(
break;
}
/* fallthrough */
- } default: {
+ }
+ case TemplateArgument::Template:
+ case TemplateArgument::TemplateExpansion:
+ case TemplateArgument::Declaration:
+ case TemplateArgument::NullPtr:
+ case TemplateArgument::Pack: {
// Issue a diagnostic.
DiagnosticsEngine &Diags = Context.getDiags();
unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error,