summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprCXX.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-11-15 13:54:43 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-11-15 13:54:43 +0000
commit99da11cf0474ea6ef1ea73acbe9bfd9847b61451 (patch)
tree1e464d002490346916010a4b38efe534d3ac4cac /clang/lib/CodeGen/CGExprCXX.cpp
parent731d392d1c4f390d9709d3cf0f7c84f2229c6afa (diff)
downloadbcm5719-llvm-99da11cf0474ea6ef1ea73acbe9bfd9847b61451.tar.gz
bcm5719-llvm-99da11cf0474ea6ef1ea73acbe9bfd9847b61451.zip
Silence an unused variable warning during release builds by folding the
expression into the assert. llvm-svn: 119143
Diffstat (limited to 'clang/lib/CodeGen/CGExprCXX.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprCXX.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGExprCXX.cpp b/clang/lib/CodeGen/CGExprCXX.cpp
index 137c54ab1ed..66a07454ae2 100644
--- a/clang/lib/CodeGen/CGExprCXX.cpp
+++ b/clang/lib/CodeGen/CGExprCXX.cpp
@@ -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());
}
OpenPOWER on IntegriCloud