Skip to content

Commit 99da11c

Browse files
committed
Silence an unused variable warning during release builds by folding the
expression into the assert. llvm-svn: 119143
1 parent 731d392 commit 99da11c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/lib/CodeGen/CGExprCXX.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,8 @@ CodeGenFunction::EmitSynthesizedCXXCopyCtor(llvm::Value *Dest,
361361
if (E->requiresZeroInitialization())
362362
EmitNullInitialization(Dest, E->getType());
363363

364-
const ConstantArrayType *Array
365-
= getContext().getAsConstantArrayType(E->getType());
366-
assert (!Array && "EmitSynthesizedCXXCopyCtor - Copied-in Array");
364+
assert(!getContext().getAsConstantArrayType(E->getType())
365+
&& "EmitSynthesizedCXXCopyCtor - Copied-in Array");
367366
EmitSynthesizedCXXCopyCtorCall(CD, Dest, Src,
368367
E->arg_begin(), E->arg_end());
369368
}

0 commit comments

Comments
 (0)