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:
8878e21
)
Simplify this code. NamedMDNode operands are MDNodes.
author
Dan Gohman
<gohman@apple.com>
Tue, 24 Aug 2010 02:01:24 +0000
(
02:01
+0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 24 Aug 2010 02:01:24 +0000
(
02:01
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111892
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bitcode/Writer/ValueEnumerator.cpp
patch
|
blob
|
history
diff --git
a/lib/Bitcode/Writer/ValueEnumerator.cpp
b/lib/Bitcode/Writer/ValueEnumerator.cpp
index 930c5215173be8644d1c660220462e93663a8c96..edd41ed21d3b67698198f99ad056921cd923492e 100644
(file)
--- a/
lib/Bitcode/Writer/ValueEnumerator.cpp
+++ b/
lib/Bitcode/Writer/ValueEnumerator.cpp
@@
-217,8
+217,7
@@
void ValueEnumerator::EnumerateNamedMetadata(const Module *M) {
void ValueEnumerator::EnumerateNamedMDNode(const NamedMDNode *MD) {
for (unsigned i = 0, e = MD->getNumOperands(); i != e; ++i)
- if (MDNode *E = MD->getOperand(i))
- EnumerateValue(E);
+ EnumerateMetadata(MD->getOperand(i));
}
void ValueEnumerator::EnumerateMetadata(const Value *MD) {