Put back a bit of expensive checking logic that

was overenthusiastically deleted in r70234.

llvm-svn: 71926
This commit is contained in:
Duncan Sands 2009-05-16 04:14:29 +00:00
parent 81e053a739
commit 83d008614f
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ void DAGTypeLegalizer::PerformExpensiveChecks() {
cerr << "Unprocessed value in a map!";
Failed = true;
}
} else if (isTypeLegal(Res.getValueType())) {
} else if (isTypeLegal(Res.getValueType()) || IgnoreNodeResults(I)) {
if (Mapped > 1) {
cerr << "Value with legal type was transformed!";
Failed = true;