commit | ed4b4272ba2c2ff68f839738ba8147c3606d8885 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Mon Jul 25 22:25:42 2011 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Mon Jul 25 22:25:42 2011 +0000 |
tree | 2f7399cf0ef27da33c15223a8a53ca4a888d1a28 | |
parent | a26ec886a3a4d9d317262861d7a3de4f64bad71c [diff] [blame] |
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
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 @@ // 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) {