diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-02-02 12:15:55 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-02-02 12:15:55 +0000 |
commit | 878b55ce6cbbf62461c796163f586cc75202f7d4 (patch) | |
tree | 28f9bd62c76f22513f289fd3689fbb8536306c0e /lib/CodeGen/CGExprConstant.cpp | |
parent | 68c6c9a21e2d9d587477e07522fe55769d3aa26a (diff) |
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
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |