diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-08 00:59:58 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-08 00:59:58 +0000 |
commit | 7c3d7f6c595336b0670f05648d850801cd8f7176 (patch) | |
tree | 6375bd76e8456b372f85c41e0c3c70b13a67d775 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 4bfb4c80e041330fd91bb3c40a5ec5db417a8c12 (diff) | |
download | bcm5719-llvm-7c3d7f6c595336b0670f05648d850801cd8f7176.tar.gz bcm5719-llvm-7c3d7f6c595336b0670f05648d850801cd8f7176.zip |
Remove use of uninitized variable.
llvm-svn: 78448
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index e1cf13c72da..503bcda8e7b 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -686,18 +686,16 @@ void CodeGenModule::DeferredCopyConstructorToEmit(GlobalDecl CopyCtorDecl) { // are defined. 12.8.p7 for (CXXRecordDecl::base_class_const_iterator Base = ClassDecl->bases_begin(); Base != ClassDecl->bases_end(); ++Base) { - unsigned TypeQuals; CXXRecordDecl *BaseClassDecl = cast<CXXRecordDecl>(Base->getType()->getAs<RecordType>()->getDecl()); if (CXXConstructorDecl *BaseCopyCtor = - BaseClassDecl->getCopyConstructor(Context, TypeQuals)) + BaseClassDecl->getCopyConstructor(Context, 0)) GetAddrOfCXXConstructor(BaseCopyCtor, Ctor_Complete); } for (CXXRecordDecl::field_iterator Field = ClassDecl->field_begin(), FieldEnd = ClassDecl->field_end(); Field != FieldEnd; ++Field) { - unsigned TypeQuals; QualType FieldType = Context.getCanonicalType((*Field)->getType()); if (const ArrayType *Array = Context.getAsArrayType(FieldType)) FieldType = Array->getElementType(); @@ -705,7 +703,7 @@ void CodeGenModule::DeferredCopyConstructorToEmit(GlobalDecl CopyCtorDecl) { CXXRecordDecl *FieldClassDecl = cast<CXXRecordDecl>(FieldClassType->getDecl()); if (CXXConstructorDecl *FieldCopyCtor = - FieldClassDecl->getCopyConstructor(Context, TypeQuals)) + FieldClassDecl->getCopyConstructor(Context, 0)) GetAddrOfCXXConstructor(FieldCopyCtor, Ctor_Complete); } } |