Replace some special-case code which probably was buggy with an assertion
authorDan Gohman <gohman@apple.com>
Mon, 4 Jan 2010 20:36:57 +0000 (20:36 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 4 Jan 2010 20:36:57 +0000 (20:36 +0000)
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

utils/TableGen/DAGISelEmitter.cpp

index a6bb2112c1ce8b66f30b422056a0e93dcf74bf30..60383f49c388e2bc00b5d3285bd5d2c29be13c4a 100644 (file)
@@ -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);