diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-12-13 03:03:23 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-12-13 03:03:23 +0000 |
commit | d7d746f60337684310fcd985d4466edd6a5980ac (patch) | |
tree | 97cc756f648aa28d9783695e717719ffd3f63f13 | |
parent | c937ffafba287fe5a48132b7162f085c58ac2fb9 (diff) |
Lowering constant pool entries on ppc exposed a bug in the recently added
ConstantVec legalizing code, which would return constantpool nodes that
were not of the target's pointer type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24691 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 6896fb39e2..15376216a5 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -714,7 +714,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { cast<ConstantSDNode>(OpN)->getValue())); } Constant *CP = ConstantPacked::get(CV); - SDOperand CPIdx = DAG.getConstantPool(CP, Node->getValueType(0)); + SDOperand CPIdx = LegalizeOp(DAG.getConstantPool(CP, TLI.getPointerTy())); Result = DAG.getLoad(VT, DAG.getEntryNode(), CPIdx, DAG.getSrcValue(NULL)); break; } |