Use the Arg variable rather than re-computing it. This also silences GCC's

unused variable warning.

llvm-svn: 95085
This commit is contained in:
Chandler Carruth 2010-02-02 12:15:55 +00:00
parent 03c4848bf4
commit 173bfe477b
1 changed files with 1 additions and 1 deletions

View 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);