aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCXX.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-08-08 00:59:58 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-08-08 00:59:58 +0000
commit80e4b9e0e87064a824d72b6ff89074206ecced58 (patch)
tree09dcadaa4febb7b017fc7049cb6c40ed841936db /lib/CodeGen/CGCXX.cpp
parent1e4edd5474f8cb966356afa6175d658002ff819c (diff)
Remove use of uninitized variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r--lib/CodeGen/CGCXX.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp
index 3ccde5b190..3e828bf9ac 100644
--- a/lib/CodeGen/CGCXX.cpp
+++ b/lib/CodeGen/CGCXX.cpp
@@ -674,9 +674,8 @@ void CodeGenFunction::EmitClassMemberwiseCopy(
// FIXME. Do bitwise copy of trivial copy constructors.
if (BaseClassDecl->hasTrivialCopyConstructor())
return;
- unsigned TypeQuals;
if (CXXConstructorDecl *BaseCopyCtor =
- BaseClassDecl->getCopyConstructor(getContext(), TypeQuals)) {
+ BaseClassDecl->getCopyConstructor(getContext(), 0)) {
llvm::Value *Callee = CGM.GetAddrOfCXXConstructor(BaseCopyCtor,
Ctor_Complete);