[cfe-commits] r95085 - /cfe/trunk/lib/CodeGen/CGExprConstant.cpp

Chandler Carruth chandlerc at gmail.com
Tue Feb 2 04:15:56 PST 2010


Author: chandlerc
Date: Tue Feb  2 06:15:55 2010
New Revision: 95085

URL: http://llvm.org/viewvc/llvm-project?rev=95085&view=rev
Log:
Use the Arg variable rather than re-computing it. This also silences GCC's
unused variable warning.

Modified:
    cfe/trunk/lib/CodeGen/CGExprConstant.cpp

Modified: cfe/trunk/lib/CodeGen/CGExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprConstant.cpp?rev=95085&r1=95084&r2=95085&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprConstant.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprConstant.cpp Tue Feb  2 06:15:55 2010
@@ -685,7 +685,7 @@
       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);





More information about the cfe-commits mailing list