diff options
author | Duncan Sands <baldrick@free.fr> | 2008-12-03 12:36:16 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-12-03 12:36:16 +0000 |
commit | 8b8e5a7f9648bc7e39dc28607c5ade43aaafb3af (patch) | |
tree | 623f22ebb43a2ed8c7f27b00c24e129367c0a8bd /lib | |
parent | 952b839ce9bc0c6d605d8b202c9cd76f7f05a77d (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeTypes.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp index 0573b6dd35..84dfdc7a7f 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!"); } } |