diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-24 02:01:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-24 02:01:24 +0000 |
commit | 078b05320a0bad930332a2071832c2bb725ce4a5 (patch) | |
tree | c92fbebbe0e540519eff846dac37667b7b42a5f5 /lib/Bitcode/Writer | |
parent | 8878e21fe6ba26b0eb83bcd47ab07cff175141e2 (diff) | |
download | external_llvm-078b05320a0bad930332a2071832c2bb725ce4a5.zip external_llvm-078b05320a0bad930332a2071832c2bb725ce4a5.tar.gz external_llvm-078b05320a0bad930332a2071832c2bb725ce4a5.tar.bz2 |
Simplify this code. NamedMDNode operands are MDNodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer')
-rw-r--r-- | lib/Bitcode/Writer/ValueEnumerator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Bitcode/Writer/ValueEnumerator.cpp b/lib/Bitcode/Writer/ValueEnumerator.cpp index 930c521..edd41ed 100644 --- 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) { |