]> granicus.if.org Git - clang/commitdiff
Cleanup.
authorMike Stump <mrs@apple.com>
Wed, 12 Aug 2009 23:03:28 +0000 (23:03 +0000)
committerMike Stump <mrs@apple.com>
Wed, 12 Aug 2009 23:03:28 +0000 (23:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78855 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCXX.cpp

index e63bd7c87e0d18a7f414acff2db67ebf04aa28f1..31b406aed2029256b9617ca9dbde8c146a86f05a 100644 (file)
@@ -735,9 +735,7 @@ llvm::Value *CodeGenFunction::GenerateVtable(const CXXRecordDecl *RD) {
   llvm::GlobalVariable::LinkageTypes linktype;
   linktype = llvm::GlobalValue::WeakAnyLinkage;
   std::vector<llvm::Constant *> methods;
-  typedef CXXRecordDecl::method_iterator meth_iter;
-  llvm::Type *Ptr8Ty;
-  Ptr8Ty = llvm::PointerType::get(llvm::Type::Int8Ty, 0);
+  llvm::Type *Ptr8Ty = llvm::PointerType::get(llvm::Type::Int8Ty, 0);
   int64_t Offset = 0;
   llvm::Constant *rtti = GenerateRtti(RD);