1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

A bit of feedback from Chris that I missed; error rather than asserting.

llvm-svn: 36619
This commit is contained in:
Nate Begeman 2007-05-01 06:08:36 +00:00
parent 767ee95d29
commit e32b8f8b4b

View File

@ -450,8 +450,11 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
std::vector<Record*> From = SubRegs[i]->getValueAsListOfDefs("From");
std::vector<Record*> To = SubRegs[i]->getValueAsListOfDefs("To");
assert((From.size() == To.size()) &&
"SubRegSet has mismatched from/to size");
if (From.size() != To.size()) {
cerr << "Error: register list and sub-register list not of equal length"
<< " in SubRegSet\n";
exit(1);
}
// For each entry in from/to vectors, insert the to register at index
for (unsigned ii = 0, ee = From.size(); ii != ee; ++ii)