From: Yaron Keren Date: Sat, 28 Feb 2015 15:29:17 +0000 (+0000) Subject: Silence three more variable set but not used warnings, NFC. X-Git-Tag: llvmorg-3.7.0-rc1~10569 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d602c35ecaa806fd6693d7fba3020652fa25696a;p=platform%2Fupstream%2Fllvm.git Silence three more variable set but not used warnings, NFC. llvm-svn: 230853 --- diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 92af0f8..3010ee8 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(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");