Fix a crash in the dag combiner caused by ConstantFoldBIT_CONVERTofBUILD_VECTOR calli...
authorNate Begeman <natebegeman@mac.com>
Tue, 27 Jul 2010 18:02:18 +0000 (18:02 +0000)
committerNate Begeman <natebegeman@mac.com>
Tue, 27 Jul 2010 18:02:18 +0000 (18:02 +0000)
commite0efc216eb94f8f92b85cb4f1af2da9ce2a583fc
tree1aaa0a9faa1f9cd352d08e732d090ae51e429d76
parent57cb4f8be1b6dcac5e504d82c8b2a911909f2deb
Fix a crash in the dag combiner caused by ConstantFoldBIT_CONVERTofBUILD_VECTOR calling itself
recursively and returning a SCALAR_TO_VECTOR node, but assuming the input was always a BUILD_VECTOR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109519 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/Generic/2010-07-27-DAGCombineCrash.ll [new file with mode: 0644]