mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-25 12:49:50 +00:00
Suppress -Asserts warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85078 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
46264f020a
commit
22bbd9b9b8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user