[llvm-commits] [llvm] r134868 - /llvm/trunk/lib/VMCore/Constants.cpp

Chandler Carruth chandlerc at gmail.com
Sun Jul 10 02:45:35 PDT 2011


Author: chandlerc
Date: Sun Jul 10 04:45:35 2011
New Revision: 134868

URL: http://llvm.org/viewvc/llvm-project?rev=134868&view=rev
Log:
Silence -Wunused-variable in release builds.

Modified:
    llvm/trunk/lib/VMCore/Constants.cpp

Modified: llvm/trunk/lib/VMCore/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Constants.cpp?rev=134868&r1=134867&r2=134868&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Constants.cpp (original)
+++ llvm/trunk/lib/VMCore/Constants.cpp Sun Jul 10 04:45:35 2011
@@ -1720,6 +1720,7 @@
          "Tried to create insertelement operation on non-first-class type!");
 
   const Type *ReqTy = Agg->getType();
+  (void)ReqTy;
 #ifndef NDEBUG
   const Type *ValTy =
     ExtractValueInst::getIndexedType(Agg->getType(), Idxs, Idxs+NumIdx);
@@ -1745,6 +1746,7 @@
 
   const Type *ReqTy =
     ExtractValueInst::getIndexedType(Agg->getType(), Idxs, Idxs+NumIdx);
+  (void)ReqTy;
   assert(ReqTy && "extractvalue indices invalid!");
   
   assert(Agg->getType()->isFirstClassType() &&





More information about the llvm-commits mailing list