]> granicus.if.org Git - clang/commitdiff
Remove dead variable flagged by gcc's -Wunused-but-set-variable. No
authorNick Lewycky <nicholas@mxc.ca>
Mon, 2 May 2011 00:41:17 +0000 (00:41 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 2 May 2011 00:41:17 +0000 (00:41 +0000)
functionality change.

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

lib/CodeGen/ItaniumCXXABI.cpp

index f2786462232b4fa3a00f25db143e0151e7c9a16c..33abf3a4aaf7ff25ad203cd6a27470b9c3fb3ca9 100644 (file)
@@ -537,7 +537,6 @@ llvm::Constant *ItaniumCXXABI::EmitMemberPointer(const CXXMethodDecl *MD) {
       MemPtr[1] = llvm::ConstantInt::get(ptrdiff_t, 0);
     }
   } else {
-    QualType fnType = MD->getType();
     const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>();
     const llvm::Type *Ty;
     // Check whether the function has a computable LLVM signature.