mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-16 08:29:08 +00:00
From Chris' review: use isa instead of explicitly using classof.
llvm-svn: 46964
This commit is contained in:
parent
48e7261cca
commit
243661fb31
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user