From 878b55ce6cbbf62461c796163f586cc75202f7d4 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Tue, 2 Feb 2010 12:15:55 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CGExprConstant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1