forked from OSchip/llvm-project
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
This commit is contained in:
parent
acec857b1a
commit
956aef45c9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue