From dc770fcb2c84068a64b471fe6c4c56966cf3021f Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sun, 10 Jul 2011 09:45:35 +0000 Subject: [PATCH] Silence -Wunused-variable in release builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134868 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Constants.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 324a760717..57498b4859 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -1720,6 +1720,7 @@ Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, "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 @@ Constant *ConstantExpr::getExtractValue(Constant *Agg, const Type *ReqTy = ExtractValueInst::getIndexedType(Agg->getType(), Idxs, Idxs+NumIdx); + (void)ReqTy; assert(ReqTy && "extractvalue indices invalid!"); assert(Agg->getType()->isFirstClassType() && -- 2.11.4.GIT