From 22bbd9b9b89806fa9099442f8892f4e970ca54e9 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 25 Oct 2009 23:11:06 +0000 Subject: [PATCH] Suppress -Asserts warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85078 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bitcode/Reader/BitcodeReader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index ffd330c74ec..b392122b778 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/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 {