From 243661fb31146bfa8240754e7e020ebf3bb6377d Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 11 Feb 2008 19:00:34 +0000 Subject: [PATCH] From Chris' review: use isa instead of explicitly using classof. llvm-svn: 46964 --- lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index 5f09a4f6b14..44886e76df8 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -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(Node->getOperand(N - 1).Val)) --N; // Ignore MemOperand nodes return N; }