]> granicus.if.org Git - clang/commitdiff
Silence an unused variable warning during release builds by folding the
authorChandler Carruth <chandlerc@gmail.com>
Mon, 15 Nov 2010 13:54:43 +0000 (13:54 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 15 Nov 2010 13:54:43 +0000 (13:54 +0000)
expression into the assert.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119143 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprCXX.cpp

index 137c54ab1ed95c4c14b877cc32a868aa0fef2b34..66a07454ae2f55aed86b62c1e6cb5a6d2c6824d7 100644 (file)
@@ -361,9 +361,8 @@ CodeGenFunction::EmitSynthesizedCXXCopyCtor(llvm::Value *Dest,
   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());
 }