From: Daniel Dunbar Date: Sat, 17 Oct 2009 09:39:30 +0000 (+0000) Subject: Suppress -Asserts warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=babac13bb332974c8bb800b1a9714bcdf5afefcc;p=clang Suppress -Asserts warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84329 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index 0866ff893c..01f719386c 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -285,6 +285,7 @@ void AggExprEmitter::VisitBinComma(const BinaryOperator *E) { void AggExprEmitter::VisitUnaryAddrOf(const UnaryOperator *E) { // We have a member function pointer. const MemberPointerType *MPT = E->getType()->getAs(); + (void) MPT; assert(MPT->getPointeeType()->isFunctionProtoType() && "Unexpected member pointer type!");