Emit an error instead of an assertion if trying to do bogus things in result patterns.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-01-11 01:33:49 +00:00
parent 07ac89f30a
commit 7893f13ad6

View 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!");
}
}