Silence an unused variable warning during release builds by folding the

expression into the assert.

llvm-svn: 119143
This commit is contained in:
Chandler Carruth 2010-11-15 13:54:43 +00:00
parent 731d392d1c
commit 99da11cf04
1 changed files with 2 additions and 3 deletions

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