]> granicus.if.org Git - clang/commitdiff
Fix a small regression in warning about template type parameter redeclarations.
authorDouglas Gregor <dgregor@apple.com>
Fri, 23 Jan 2009 22:28:29 +0000 (22:28 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 23 Jan 2009 22:28:29 +0000 (22:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62886 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclBase.h

index 86992b5dd51fa2677e961e79794bdcc812e66319..8d203cc2c2c691a8a72eb8b68295ee0dae345406 100644 (file)
@@ -259,7 +259,6 @@ public:
       assert(0 && "Unknown decl kind!");
     case OverloadedFunction:
     case Typedef:
-    case TemplateTypeParm:
     case EnumConstant:
     case Var:
     case CXXClassVar:
@@ -285,6 +284,7 @@ public:
     case Record:
     case CXXRecord:
     case Enum:
+    case TemplateTypeParm:
       return IDNS_Tag;
 
     case Namespace: