]> granicus.if.org Git - clang/commitdiff
NFC: Minor formatting fix
authorWill Wilson <will@indefiant.com>
Sat, 13 Dec 2014 04:38:19 +0000 (04:38 +0000)
committerWill Wilson <will@indefiant.com>
Sat, 13 Dec 2014 04:38:19 +0000 (04:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224185 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/TemplateBase.cpp

index 4250c813a28fb8445911042e7a7038be3a7e0e7c..d0c938d92435108ea988f1e7cfdc9b13958c971d 100644 (file)
@@ -40,7 +40,7 @@ static void printIntegral(const TemplateArgument &TemplArg,
   const ::clang::Type *T = TemplArg.getIntegralType().getTypePtr();
   const llvm::APSInt &Val = TemplArg.getAsIntegral();
 
-  if (const EnumTypeET = T->getAs<EnumType>()) {
+  if (const EnumType *ET = T->getAs<EnumType>()) {
     for (const EnumConstantDecl* ECD : ET->getDecl()->enumerators()) {
       if (ECD->getInitVal() == Val) {
         ECD->printQualifiedName(Out, Policy);