mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
getZeroExtendInReg needs to get a scalar type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133057 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f2b85ddd4
commit
8e61432249
@ -972,7 +972,8 @@ SDValue DAGTypeLegalizer::PromoteIntOp_ZERO_EXTEND(SDNode *N) {
|
||||
DebugLoc dl = N->getDebugLoc();
|
||||
SDValue Op = GetPromotedInteger(N->getOperand(0));
|
||||
Op = DAG.getNode(ISD::ANY_EXTEND, dl, N->getValueType(0), Op);
|
||||
return DAG.getZeroExtendInReg(Op, dl, N->getOperand(0).getValueType());
|
||||
return DAG.getZeroExtendInReg(Op, dl,
|
||||
N->getOperand(0).getValueType().getScalarType());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user