aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-07-25 22:25:42 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-07-25 22:25:42 +0000
commitcbd3ba91b7c9664b6d0dc4ffb60e92b91385fbd6 (patch)
tree91fc0e0eae037a0b0c17ea087283261d178ee16b /llvm/lib/CodeGen
parent49993f26bf28f607d000a41c6bb41c599aadb5c9 (diff)
downloadllvm-cbd3ba91b7c9664b6d0dc4ffb60e92b91385fbd6.zip
llvm-cbd3ba91b7c9664b6d0dc4ffb60e92b91385fbd6.tar.gz
llvm-cbd3ba91b7c9664b6d0dc4ffb60e92b91385fbd6.tar.bz2
Make sure this DAGCombine actually returns an UNDEF of the correct type; PR10476.
llvm-svn: 135993
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 5a7319f..51aca66 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/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) {