mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-31 09:32:11 +00:00
Fix r123346 to handle scalar types too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123352 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
668c9e31df
commit
dd11ea4a37
@ -1378,8 +1378,7 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
|
|||||||
Result.getValueType(),
|
Result.getValueType(),
|
||||||
Result, DAG.getValueType(SrcVT));
|
Result, DAG.getValueType(SrcVT));
|
||||||
else
|
else
|
||||||
ValRes = DAG.getZeroExtendInReg(Result, dl,
|
ValRes = DAG.getZeroExtendInReg(Result, dl, SrcVT.getScalarType());
|
||||||
SrcVT.getVectorElementType());
|
|
||||||
Tmp1 = LegalizeOp(ValRes); // Relegalize new nodes.
|
Tmp1 = LegalizeOp(ValRes); // Relegalize new nodes.
|
||||||
Tmp2 = LegalizeOp(Result.getValue(1)); // Relegalize new nodes.
|
Tmp2 = LegalizeOp(Result.getValue(1)); // Relegalize new nodes.
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user