diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-10-25 23:11:06 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-10-25 23:11:06 +0000 |
commit | 22bbd9b9b89806fa9099442f8892f4e970ca54e9 (patch) | |
tree | 8f0794093f7f87b0d43a8ac0e8dfa640c76dd257 /lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 46264f020a2f08c605ac69754291a7413d747766 (diff) |
Suppress -Asserts warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index ffd330c74e..b392122b77 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 { |