llvm.org GIT mirror llvm / 078b053
Simplify this code. NamedMDNode operands are MDNodes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111892 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 9 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
216216
217217 void ValueEnumerator::EnumerateNamedMDNode(const NamedMDNode *MD) {
218218 for (unsigned i = 0, e = MD->getNumOperands(); i != e; ++i)
219 if (MDNode *E = MD->getOperand(i))
220 EnumerateValue(E);
219 EnumerateMetadata(MD->getOperand(i));
221220 }
222221
223222 void ValueEnumerator::EnumerateMetadata(const Value *MD) {