[llvm-commits] [llvm] r111892 - /llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
Dan Gohman
gohman at apple.com
Mon Aug 23 19:01:24 PDT 2010
Author: djg
Date: Mon Aug 23 21:01:24 2010
New Revision: 111892
URL: http://llvm.org/viewvc/llvm-project?rev=111892&view=rev
Log:
Simplify this code. NamedMDNode operands are MDNodes.
Modified:
llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
Modified: llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp?rev=111892&r1=111891&r2=111892&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp Mon Aug 23 21:01:24 2010
@@ -217,8 +217,7 @@
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) {
More information about the llvm-commits
mailing list