Use the correct result value type instead of using getValueType(0)
authorDan Gohman <gohman@apple.com>
Mon, 24 Sep 2007 15:54:53 +0000 (15:54 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 24 Sep 2007 15:54:53 +0000 (15:54 +0000)
commite40c7b097354974ebd42c7e5d54440b07b57cc33
tree9d208c5d8dc4264c1ca85414df37b81dbfe829c3
parentea81d095dcd3ff37fb2ccb6dae31fdf00f45a1b9
Use the correct result value type instead of using getValueType(0)
in ExpandEXTRACT_VECTOR_ELT and SplitVectorOp. This fixes an abort
in the included testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42264 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
test/CodeGen/X86/extractelement-from-arg.ll [new file with mode: 0644]