From Chris' review: use isa instead of explicitly using classof.
authorDan Gohman <gohman@apple.com>
Mon, 11 Feb 2008 19:00:34 +0000 (19:00 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 11 Feb 2008 19:00:34 +0000 (19:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46964 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/ScheduleDAG.cpp

index 5f09a4f6b145da0ccc850bc0ffdfb0b199a76275..44886e76df824d861f87c76d40b8f86136a2b2d6 100644 (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;
 }