projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46264f0
)
Suppress -Asserts warning.
author
Daniel Dunbar
<daniel@zuster.org>
Sun, 25 Oct 2009 23:11:06 +0000
(23:11 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Sun, 25 Oct 2009 23:11:06 +0000
(23:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85078
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
patch
|
blob
|
history
diff --git
a/lib/Bitcode/Reader/BitcodeReader.cpp
b/lib/Bitcode/Reader/BitcodeReader.cpp
index ffd330c74ec79aba452f203e062dc6d0476997f6..b392122b77858288e667f85d6e0915d3108ed190 100644
(file)
--- 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 {