diff options
author | Dan Gohman <gohman@apple.com> | 2010-01-04 20:36:57 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-01-04 20:36:57 +0000 |
commit | ba7a662f5416057a16a40cdeb2dc4db56f207106 (patch) | |
tree | 8661e4da4e89f0fe86f782d78dc6072eaa5b6e26 /utils | |
parent | 537ab90d8de19b9f9cd758188947bde2edfd0358 (diff) | |
download | external_llvm-ba7a662f5416057a16a40cdeb2dc4db56f207106.zip external_llvm-ba7a662f5416057a16a40cdeb2dc4db56f207106.tar.gz external_llvm-ba7a662f5416057a16a40cdeb2dc4db56f207106.tar.bz2 |
Replace some special-case code which probably was buggy with an assertion
verifying that the special case does not occur.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/DAGISelEmitter.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index a6bb211..60383f4 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -1241,12 +1241,7 @@ public: ; } else if (InputHasChain && !NodeHasChain) { // One of the inner node produces a chain. - if (NodeHasOutFlag) { - ReplaceFroms.push_back("SDValue(N.getNode(), " + - utostr(NumPatResults+1) + - ")"); - ReplaceTos.push_back("SDValue(ResNode, N.getResNo()-1)"); - } + assert(!NodeHasOutFlag && "Node has flag but not chain!"); ReplaceFroms.push_back("SDValue(N.getNode(), " + utostr(NumPatResults) + ")"); ReplaceTos.push_back(ChainName); |