From: Duncan Sands Date: Wed, 3 Dec 2008 12:36:16 +0000 (+0000) Subject: Only check that the result of the mapping was not X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8b8e5a7f9648bc7e39dc28607c5ade43aaafb3af;p=oota-llvm.git Only check that the result of the mapping was not a new node if the node was actually remapped. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60482 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp index 0573b6dd356..84dfdc7a7ff 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp +++ b/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!"); } }