summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-02-28 15:29:17 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-02-28 15:29:17 +0000
commitd602c35ecaa806fd6693d7fba3020652fa25696a (patch)
treeb4e7106943a30c49168e500eb92986063f815f83 /llvm/lib/Bitcode/Reader
parentd40991bf83506275dcb3bf04fe5aaad1e0815f8e (diff)
downloadbcm5719-llvm-d602c35ecaa806fd6693d7fba3020652fa25696a.tar.gz
bcm5719-llvm-d602c35ecaa806fd6693d7fba3020652fa25696a.zip
Silence three more variable set but not used warnings, NFC.
llvm-svn: 230853
Diffstat (limited to 'llvm/lib/Bitcode/Reader')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 92af0f8603b..3010ee86493 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -3091,6 +3091,7 @@ std::error_code BitcodeReader::ParseFunctionBody(Function *F) {
}
I = GetElementPtrInst::Create(BasePtr, GEPIdx);
+ (void)Ty;
assert(!Ty || Ty == cast<GetElementPtrInst>(I)->getSourceElementType());
InstructionList.push_back(I);
if (InBounds)
@@ -3600,6 +3601,7 @@ std::error_code BitcodeReader::ParseFunctionBody(Function *F) {
return EC;
I = new LoadInst(Op, "", Record[OpNum+1], Align);
+ (void)Ty;
assert((!Ty || Ty == I->getType()) &&
"Explicit type doesn't match pointee type of the first operand");
@@ -3631,6 +3633,7 @@ std::error_code BitcodeReader::ParseFunctionBody(Function *F) {
return EC;
I = new LoadInst(Op, "", Record[OpNum+1], Align, Ordering, SynchScope);
+ (void)Ty;
assert((!Ty || Ty == I->getType()) &&
"Explicit type doesn't match pointee type of the first operand");
OpenPOWER on IntegriCloud