OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
027ee7e
)
From Chris' review: use isa instead of explicitly using classof.
author
Dan Gohman
<gohman@apple.com>
Mon, 11 Feb 2008 19:00:34 +0000
(19:00 +0000)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index
5f09a4f
..
44886e7
100644
(file)
--- a/
lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/
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;
}