LegalizeTypes can sometimes have deleted nodes
authorDuncan Sands <baldrick@free.fr>
Sun, 13 Apr 2008 16:04:03 +0000 (16:04 +0000)
committerDuncan Sands <baldrick@free.fr>
Sun, 13 Apr 2008 16:04:03 +0000 (16:04 +0000)
commit4a6da60787fcc66c521288fbd139cf8afdca5957
treeb21f83fd9fe3632e5bfadfb2fe725b9b5927c0ce
parentc0cb28fd3abee9a8b40856990e04f1af2f9bd7b8
LegalizeTypes can sometimes have deleted nodes
in its maps.  Add some sanity checks that catch
this kind of thing.  Hopefully these can be
removed one day (once all problems are fixed!)
but for the moment it seems wise to have them in.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49612 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
lib/CodeGen/SelectionDAG/LegalizeTypes.h