summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-04 20:36:57 +0000
committerDan Gohman <gohman@apple.com>2010-01-04 20:36:57 +0000
commit673e23558bade7231c5486337ed11ce55edef7ca (patch)
tree842bf00a18262352fdf5db49def73fccd36d7995 /llvm/utils
parentb91411c9b9be13f1c99fbfc4da2529d154c6673c (diff)
downloadbcm5719-llvm-673e23558bade7231c5486337ed11ce55edef7ca.tar.gz
bcm5719-llvm-673e23558bade7231c5486337ed11ce55edef7ca.zip
Replace some special-case code which probably was buggy with an assertion
verifying that the special case does not occur. llvm-svn: 92504
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/DAGISelEmitter.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp
index a6bb2112c1c..60383f49c38 100644
--- a/llvm/utils/TableGen/DAGISelEmitter.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud