summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-10-25 23:11:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-10-25 23:11:06 +0000
commit3d913cda5f099b3ec87818218d0afd9b251888fa (patch)
tree2c95906780004cd43266a5c7773e8175fd628819 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentf4c2a9f02a923314cda7a8aea57bdd9cdb260e68 (diff)
downloadbcm5719-llvm-3d913cda5f099b3ec87818218d0afd9b251888fa.tar.gz
bcm5719-llvm-3d913cda5f099b3ec87818218d0afd9b251888fa.zip
Suppress -Asserts warning.
llvm-svn: 85078
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index ffd330c74ec..b392122b778 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -837,12 +837,14 @@ bool BitcodeReader::ParseMetadata() {
SmallString<8> Name;
Name.resize(RecordLength-1);
unsigned Kind = Record[0];
+ (void) Kind;
for (unsigned i = 1; i != RecordLength; ++i)
Name[i-1] = Record[i];
MetadataContext &TheMetadata = Context.getMetadata();
unsigned ExistingKind = TheMetadata.getMDKind(Name.str());
if (ExistingKind == 0) {
unsigned NewKind = TheMetadata.registerMDKind(Name.str());
+ (void) NewKind;
assert (Kind == NewKind
&& "Unable to handle custom metadata mismatch!");
} else {
OpenPOWER on IntegriCloud