r219571 - Suppress a warning about an unused variable in NDEBUG builds.

Chandler Carruth chandlerc at gmail.com
Sat Oct 11 04:29:26 PDT 2014


Author: chandlerc
Date: Sat Oct 11 06:29:26 2014
New Revision: 219571

URL: http://llvm.org/viewvc/llvm-project?rev=219571&view=rev
Log:
Suppress a warning about an unused variable in NDEBUG builds.

Modified:
    cfe/trunk/lib/CodeGen/CGExprScalar.cpp

Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=219571&r1=219570&r2=219571&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Sat Oct 11 06:29:26 2014
@@ -2865,6 +2865,7 @@ Value *ScalarExprEmitter::EmitCompare(co
       assert(CGF.getContext().hasSameUnqualifiedType(CETy,
                                                      CTy->getElementType()) &&
              "The element types must always match.");
+      (void)CTy;
     } else {
       RHS.first = Visit(E->getRHS());
       RHS.second = llvm::Constant::getNullValue(RHS.first->getType());





More information about the cfe-commits mailing list