summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-12-03 12:36:16 +0000
committerDuncan Sands <baldrick@free.fr>2008-12-03 12:36:16 +0000
commitf52e518d050b506f871e265039434d1818391f33 (patch)
tree8fb0d279e1b685542b75d122fe629031b94cf8fd /llvm/lib
parentcda011b5adebd1f6f513b43141698a4f071a7148 (diff)
downloadbcm5719-llvm-f52e518d050b506f871e265039434d1818391f33.tar.gz
bcm5719-llvm-f52e518d050b506f871e265039434d1818391f33.zip
Only check that the result of the mapping was not
a new node if the node was actually remapped. llvm-svn: 60482
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
index 0573b6dd356..84dfdc7a7ff 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
@@ -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!");
}
}
OpenPOWER on IntegriCloud