[cfe-commits] r165091 - /cfe/trunk/lib/AST/MicrosoftMangle.cpp

Nico Weber nicolasweber at gmx.de
Tue Oct 2 23:12:27 PDT 2012


Author: nico
Date: Wed Oct  3 01:12:27 2012
New Revision: 165091

URL: http://llvm.org/viewvc/llvm-project?rev=165091&view=rev
Log:
Replace a default: with an explicit list of cases. No functionality change.

Modified:
    cfe/trunk/lib/AST/MicrosoftMangle.cpp

Modified: cfe/trunk/lib/AST/MicrosoftMangle.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/MicrosoftMangle.cpp?rev=165091&r1=165090&r2=165091&view=diff
==============================================================================
--- cfe/trunk/lib/AST/MicrosoftMangle.cpp (original)
+++ cfe/trunk/lib/AST/MicrosoftMangle.cpp Wed Oct  3 01:12:27 2012
@@ -810,7 +810,12 @@
         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,





More information about the cfe-commits mailing list