diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-07-25 22:25:42 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-07-25 22:25:42 +0000 |
commit | ed4b4272ba2c2ff68f839738ba8147c3606d8885 (patch) | |
tree | 2f7399cf0ef27da33c15223a8a53ca4a888d1a28 /lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | a26ec886a3a4d9d317262861d7a3de4f64bad71c (diff) | |
download | external_llvm-ed4b4272ba2c2ff68f839738ba8147c3606d8885.zip external_llvm-ed4b4272ba2c2ff68f839738ba8147c3606d8885.tar.gz external_llvm-ed4b4272ba2c2ff68f839738ba8147c3606d8885.tar.bz2 |
Make sure this DAGCombine actually returns an UNDEF of the correct type; PR10476.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 5a7319f..51aca66 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -6896,7 +6896,7 @@ SDValue DAGCombiner::visitEXTRACT_VECTOR_ELT(SDNode *N) { // If Idx was -1 above, Elt is going to be -1, so just return undef. if (Elt == -1) - return DAG.getUNDEF(LN0->getBasePtr().getValueType()); + return DAG.getUNDEF(LVT); unsigned Align = LN0->getAlignment(); if (NewLoad) { |