diff options
| author | Dan Gohman <gohman@apple.com> | 2008-02-11 19:00:34 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-02-11 19:00:34 +0000 |
| commit | 11f6212bc0d1e61df923ab7e2715ca5fe9a6c165 (patch) | |
| tree | a3fd29d2a21cd0935cbe0e431d5efaefd79c762c /llvm/lib | |
| parent | 991056808bf7cdd6608aec8919c57969323f4b24 (diff) | |
| download | bcm5719-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.cpp | 2 |
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; } |

