diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-28 02:41:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-28 02:41:25 +0000 |
commit | 6281cda6737bcda0e924318ddcce28392001691e (patch) | |
tree | 64517cb7065b497cd9de5775c003444220652181 /utils/TableGen/DAGISelMatcherOpt.cpp | |
parent | e86097af5598e44727875f00e492d43c978239be (diff) | |
download | external_llvm-6281cda6737bcda0e924318ddcce28392001691e.zip external_llvm-6281cda6737bcda0e924318ddcce28392001691e.tar.gz external_llvm-6281cda6737bcda0e924318ddcce28392001691e.tar.bz2 |
enhance EmitNodeMatcher to keep track of the recorded slot numbers
it will populate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97363 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelMatcherOpt.cpp')
-rw-r--r-- | utils/TableGen/DAGISelMatcherOpt.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/TableGen/DAGISelMatcherOpt.cpp b/utils/TableGen/DAGISelMatcherOpt.cpp index 7953457..12c4c1b 100644 --- a/utils/TableGen/DAGISelMatcherOpt.cpp +++ b/utils/TableGen/DAGISelMatcherOpt.cpp @@ -66,10 +66,9 @@ static void ContractNodes(OwningPtr<Matcher> &MatcherPtr) { // Turn EmitNode->CompleteMatch into SelectNodeTo if we can. if (EmitNodeMatcher *EN = dyn_cast<EmitNodeMatcher>(N)) - if (CompleteMatchMatcher *CM = cast<CompleteMatchMatcher>(EN->getNext())) { + if (CompleteMatchMatcher *CM = + dyn_cast<CompleteMatchMatcher>(EN->getNext())) { (void)CM; - - } ContractNodes(N->getNextPtr()); |