summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-11 19:00:34 +0000
committerDan Gohman <gohman@apple.com>2008-02-11 19:00:34 +0000
commit11f6212bc0d1e61df923ab7e2715ca5fe9a6c165 (patch)
treea3fd29d2a21cd0935cbe0e431d5efaefd79c762c /llvm/lib
parent991056808bf7cdd6608aec8919c57969323f4b24 (diff)
downloadbcm5719-llvm-11f6212bc0d1e61df923ab7e2715ca5fe9a6c165.tar.gz
bcm5719-llvm-11f6212bc0d1e61df923ab7e2715ca5fe9a6c165.zip
From Chris' review: use isa instead of explicitly using classof.
llvm-svn: 46964
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index 5f09a4f6b14..44886e76df8 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/llvm/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<MemOperandSDNode>(Node->getOperand(N - 1).Val))
--N; // Ignore MemOperand nodes
return N;
}
OpenPOWER on IntegriCloud