]> granicus.if.org Git - clang/commitdiff
Use the Arg variable rather than re-computing it. This also silences GCC's
authorChandler Carruth <chandlerc@gmail.com>
Tue, 2 Feb 2010 12:15:55 +0000 (12:15 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 2 Feb 2010 12:15:55 +0000 (12:15 +0000)
unused variable warning.

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

lib/CodeGen/CGExprConstant.cpp

index f4dd8dc337af44ba811892ede1b33a4f4ae5f463..81209da6c6fb37f74266cea5e7bd1e741c017afc 100644 (file)
@@ -685,7 +685,7 @@ public:
       assert(CGM.getContext().hasSameUnqualifiedType(Ty, Arg->getType()) &&
              "argument to copy ctor is of wrong type");
 
-      return Visit(E->getArg(0));
+      return Visit(Arg);
     }
 
     return CGM.EmitNullConstant(Ty);