[llvm] r230853 - Silence three more variable set but not used warnings, NFC.
Yaron Keren
yaron.keren at gmail.com
Sat Feb 28 07:29:18 PST 2015
Author: yrnkrn
Date: Sat Feb 28 09:29:17 2015
New Revision: 230853
URL: http://llvm.org/viewvc/llvm-project?rev=230853&view=rev
Log:
Silence three more variable set but not used warnings, NFC.
Modified:
llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=230853&r1=230852&r2=230853&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Sat Feb 28 09:29:17 2015
@@ -3091,6 +3091,7 @@ std::error_code BitcodeReader::ParseFunc
}
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::ParseFunc
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::ParseFunc
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");
More information about the llvm-commits
mailing list