]> granicus.if.org Git - clang/commitdiff
Remove dead variable, flagged by gcc's -Wunused-but-set-variable.
authorNick Lewycky <nicholas@mxc.ca>
Mon, 2 May 2011 00:46:56 +0000 (00:46 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 2 May 2011 00:46:56 +0000 (00:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130674 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExpr.cpp

index 719403d668242ba99e0f98fc12247ee42b6e3b43..bc2cd35bc5912b3d48b98147dc5e7b7061e12003 100644 (file)
@@ -235,8 +235,6 @@ EmitExprForReferenceBinding(CodeGenFunction &CGF, const Expr *E,
     // We have to load the lvalue.
     RV = CGF.EmitLoadOfLValue(LV, E->getType());
   } else {
-    QualType ResultTy = E->getType();
-
     llvm::SmallVector<SubobjectAdjustment, 2> Adjustments;
     while (true) {
       E = E->IgnoreParens();