Emit an error instead of an assertion if trying to do bogus things in result patterns.
[oota-llvm.git] / utils / TableGen / DAGISelEmitter.cpp
index 9668ab4ede33af7b20af16c5e4d14547693a7b97..75780c4d3ed0c23ff050a99290e595abfd6129d2 100644 (file)
@@ -2281,8 +2281,8 @@ public:
       return std::make_pair(1, ResNo);
     } else {
       N->dump();
-      assert(0 && "Unknown node in result pattern!");
-      return std::make_pair(1, ~0U);
+      std::cerr << "\n";
+      throw std::string("Unknown node in result pattern!");
     }
   }