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 | 956aef45c99b9e9550583ec76b09189b43800013 (patch) | |
tree | e819df05a0c5b9e5f83beeb6cf58739f6ab7de01 /llvm/lib | |
parent | acec857b1a545b77f29ad4fc77a60690d91f3334 (diff) | |
download | bcm5719-llvm-956aef45c99b9e9550583ec76b09189b43800013.tar.gz bcm5719-llvm-956aef45c99b9e9550583ec76b09189b43800013.zip |
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.
llvm-svn: 24691
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 6896fb39e26..15376216a51 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/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; } |