From Chris' review: use isa instead of explicitly using classof.

llvm-svn: 46964
This commit is contained in:
Dan Gohman 2008-02-11 19:00:34 +00:00
parent 48e7261cca
commit 243661fb31

View File

@ -287,7 +287,7 @@ unsigned ScheduleDAG::CountOperands(SDNode *Node) {
--N;
if (N && Node->getOperand(N - 1).getValueType() == MVT::Other)
--N; // Ignore chain if it exists.
while (N && MemOperandSDNode::classof(Node->getOperand(N - 1).Val))
while (N && isa<MemOperandSDNode>(Node->getOperand(N - 1).Val))
--N; // Ignore MemOperand nodes
return N;
}