[cfe-commits] r119143 - /cfe/trunk/lib/CodeGen/CGExprCXX.cpp

Chandler Carruth chandlerc at gmail.com
Mon Nov 15 05:54:44 PST 2010


Author: chandlerc
Date: Mon Nov 15 07:54:43 2010
New Revision: 119143

URL: http://llvm.org/viewvc/llvm-project?rev=119143&view=rev
Log:
Silence an unused variable warning during release builds by folding the
expression into the assert.

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

Modified: cfe/trunk/lib/CodeGen/CGExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprCXX.cpp?rev=119143&r1=119142&r2=119143&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprCXX.cpp Mon Nov 15 07:54:43 2010
@@ -361,9 +361,8 @@
   if (E->requiresZeroInitialization())
     EmitNullInitialization(Dest, E->getType());
   
-  const ConstantArrayType *Array 
-    = getContext().getAsConstantArrayType(E->getType());
-  assert (!Array && "EmitSynthesizedCXXCopyCtor - Copied-in Array");
+  assert(!getContext().getAsConstantArrayType(E->getType())
+         && "EmitSynthesizedCXXCopyCtor - Copied-in Array");
   EmitSynthesizedCXXCopyCtorCall(CD, Dest, Src,
                                  E->arg_begin(), E->arg_end());
 }





More information about the cfe-commits mailing list