]> granicus.if.org Git - clang/commitdiff
AST: Small code cleanup
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 24 Feb 2014 23:43:27 +0000 (23:43 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 24 Feb 2014 23:43:27 +0000 (23:43 +0000)
Move the pointer to be adjacent to the variable instead of the type.

No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202089 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp

index 10e3a2d038494a4c063606d0444b0ae9164e6334..46d0451017b2e4fb869d9559314de3b8ccfff049 100644 (file)
@@ -1764,7 +1764,7 @@ unsigned ASTContext::getPreferredTypeAlign(const Type *T) const {
   const TypedefType *TT = T->getAs<TypedefType>();
 
   // Double and long long should be naturally aligned if possible.
-  if (const ComplexTypeCT = T->getAs<ComplexType>())
+  if (const ComplexType *CT = T->getAs<ComplexType>())
     T = CT->getElementType().getTypePtr();
   if (T->isSpecificBuiltinType(BuiltinType::Double) ||
       T->isSpecificBuiltinType(BuiltinType::LongLong) ||