aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-07-10 09:45:35 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-07-10 09:45:35 +0000
commitdc770fcb2c84068a64b471fe6c4c56966cf3021f (patch)
treefde540097f2efa916662773247e7289be40c5f98 /lib
parentac7d2955422e4fb4f84ac7a1c4eaa216c7851713 (diff)
downloadexternal_llvm-dc770fcb2c84068a64b471fe6c4c56966cf3021f.tar.gz
external_llvm-dc770fcb2c84068a64b471fe6c4c56966cf3021f.tar.bz2
external_llvm-dc770fcb2c84068a64b471fe6c4c56966cf3021f.zip
Silence -Wunused-variable in release builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Constants.cpp2
1 files changed, 2 insertions, 0 deletions
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() &&