mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Fix r123346 to handle scalar types too.
llvm-svn: 123352
This commit is contained in:
parent
6cdcc6287b
commit
f4ec824435
@ -1378,8 +1378,7 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
|
||||
Result.getValueType(),
|
||||
Result, DAG.getValueType(SrcVT));
|
||||
else
|
||||
ValRes = DAG.getZeroExtendInReg(Result, dl,
|
||||
SrcVT.getVectorElementType());
|
||||
ValRes = DAG.getZeroExtendInReg(Result, dl, SrcVT.getScalarType());
|
||||
Tmp1 = LegalizeOp(ValRes); // Relegalize new nodes.
|
||||
Tmp2 = LegalizeOp(Result.getValue(1)); // Relegalize new nodes.
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user