From: David Majnemer Date: Mon, 7 Jul 2014 15:29:10 +0000 (+0000) Subject: Fix comment typo. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9965f00e12d47ee235781a9c64606bd335cbe59e;p=clang Fix comment typo. No functionality changed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212462 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MicrosoftCXXABI.cpp b/lib/CodeGen/MicrosoftCXXABI.cpp index 4e5580ecbf..aa0f6d493f 100644 --- a/lib/CodeGen/MicrosoftCXXABI.cpp +++ b/lib/CodeGen/MicrosoftCXXABI.cpp @@ -2728,10 +2728,11 @@ MSRTTIBuilder::getBaseClassArray(SmallVectorImpl &Classes) { // mode) bytes of padding. We provide a pointer sized amount of padding by // adding +1 to Classes.size(). The sections have pointer alignment and are // marked pick-any so it shouldn't matter. - auto PtrType = ABI.getImageRelativeType( + llvm::Type *PtrType = ABI.getImageRelativeType( ABI.getBaseClassDescriptorType()->getPointerTo()); - auto ArrayType = llvm::ArrayType::get(PtrType, Classes.size() + 1); - auto BCA = new llvm::GlobalVariable(Module, ArrayType, + auto *ArrType = llvm::ArrayType::get(PtrType, Classes.size() + 1); + auto *BCA = new llvm::GlobalVariable( + Module, ArrType, /*Constant=*/true, Linkage, /*Initializer=*/nullptr, MangledName.c_str()); // Initialize the BaseClassArray. @@ -2740,7 +2741,7 @@ MSRTTIBuilder::getBaseClassArray(SmallVectorImpl &Classes) { BaseClassArrayData.push_back( ABI.getImageRelativeConstant(getBaseClassDescriptor(Class))); BaseClassArrayData.push_back(llvm::Constant::getNullValue(PtrType)); - BCA->setInitializer(llvm::ConstantArray::get(ArrayType, BaseClassArrayData)); + BCA->setInitializer(llvm::ConstantArray::get(ArrType, BaseClassArrayData)); return BCA; } @@ -2764,7 +2765,7 @@ MSRTTIBuilder::getBaseClassDescriptor(const MSRTTIClass &Class) { Class.Flags, Out); } - // Check to see if we've already declared declared this object. + // Check to see if we've already declared this object. if (auto BCD = Module.getNamedGlobal(MangledName)) return BCD;