From: Dan Gohman Date: Mon, 11 Feb 2008 19:00:34 +0000 (+0000) Subject: From Chris' review: use isa instead of explicitly using classof. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=cc20cd59e6c8c9bc6a633f5eea6d66c27c474053;p=oota-llvm.git From Chris' review: use isa instead of explicitly using classof. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46964 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }