llvm.org GIT mirror llvm / 6f7c8ff
A bit of feedback from Chris that I missed; error rather than asserting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36619 91177308-0d34-0410-b5e6-96231b3b80d8 Nate Begeman 13 years ago
1 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
449449 std::vector From = SubRegs[i]->getValueAsListOfDefs("From");
450450 std::vector To = SubRegs[i]->getValueAsListOfDefs("To");
451451
452 assert((From.size() == To.size()) &&
453 "SubRegSet has mismatched from/to size");
452 if (From.size() != To.size()) {
453 cerr << "Error: register list and sub-register list not of equal length"
454 << " in SubRegSet\n";
455 exit(1);
456 }
454457
455458 // For each entry in from/to vectors, insert the to register at index
456459 for (unsigned ii = 0, ee = From.size(); ii != ee; ++ii)