summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-08-10 23:46:20 +0000
committerEric Christopher <echristo@apple.com>2010-08-10 23:46:20 +0000
commitae321ed287009072e94a41d9c912243c558c43cc (patch)
tree3049c64b75726d3e40d19d6281bc623b530cdc2a /utils
parent3611d9e25d8cf79f1d0a608fb5affd6bf2d41598 (diff)
downloadllvm-ae321ed287009072e94a41d9c912243c558c43cc.tar.gz
llvm-ae321ed287009072e94a41d9c912243c558c43cc.tar.bz2
llvm-ae321ed287009072e94a41d9c912243c558c43cc.tar.xz
We already have this as OperandNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110748 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/DAGISelMatcherGen.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/utils/TableGen/DAGISelMatcherGen.cpp b/utils/TableGen/DAGISelMatcherGen.cpp
index eb528eb02b..aba6636a13 100644
--- a/utils/TableGen/DAGISelMatcherGen.cpp
+++ b/utils/TableGen/DAGISelMatcherGen.cpp
@@ -689,8 +689,8 @@ EmitResultInstructionAsOperand(const TreePatternNode *N,
!CGP.getDefaultOperand(OperandNode).DefaultOps.empty()) {
// This is a predicate or optional def operand; emit the
// 'default ops' operands.
- const DAGDefaultOperand &DefaultOp =
- CGP.getDefaultOperand(II.OperandList[InstOpNo].Rec);
+ const DAGDefaultOperand &DefaultOp
+ = CGP.getDefaultOperand(OperandNode);
for (unsigned i = 0, e = DefaultOp.DefaultOps.size(); i != e; ++i)
EmitResultOperand(DefaultOp.DefaultOps[i], InstOps);
continue;
@@ -908,6 +908,3 @@ Matcher *llvm::ConvertPatternToMatcher(const PatternToMatch &Pattern,
// Unconditional match.
return Gen.GetMatcher();
}
-
-
-