mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-03 16:03:21 +00:00
From Chris' review: use isa instead of explicitly using classof.
llvm-svn: 46964
This commit is contained in:
parent
991056808b
commit
11f6212bc0
@ -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