From: Chandler Carruth Date: Tue, 2 Feb 2010 12:15:55 +0000 (+0000) Subject: Use the Arg variable rather than re-computing it. This also silences GCC's X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=878b55ce6cbbf62461c796163f586cc75202f7d4;p=clang Use the Arg variable rather than re-computing it. This also silences GCC's unused variable warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95085 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index f4dd8dc337..81209da6c6 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -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);