NamedMDNode is never an operand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109031 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2010-07-21 20:25:43 +00:00
parent 872814ae04
commit 557c83c99e

View File

@ -520,7 +520,7 @@ void Verifier::visitMDNode(MDNode &MD, Function *F) {
Value *Op = MD.getOperand(i);
if (!Op)
continue;
if (isa<Constant>(Op) || isa<MDString>(Op) || isa<NamedMDNode>(Op))
if (isa<Constant>(Op) || isa<MDString>(Op))
continue;
if (MDNode *N = dyn_cast<MDNode>(Op)) {
Assert2(MD.isFunctionLocal() || !N->isFunctionLocal(),