Only check that the result of the mapping was not

a new node if the node was actually remapped.

llvm-svn: 60482
This commit is contained in:
Duncan Sands 2008-12-03 12:36:16 +00:00
parent cda011b5ad
commit f52e518d05
1 changed files with 1 additions and 0 deletions

View File

@ -385,6 +385,7 @@ void DAGTypeLegalizer::RemapValue(SDValue &N) {
// replaced with other values.
RemapValue(I->second);
N = I->second;
assert(N.getNode()->getNodeId() != NewNode && "Mapped to unanalyzed node!");
}
}