mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-25 16:30:05 +00:00
Correctly extract the ValueType from a VTSDNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43339 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b36904be91
commit
a3d10d808e
@ -903,7 +903,7 @@ void DAGTypeLegalizer::ExpandResult_BIT_CONVERT(SDNode *N,
|
||||
void DAGTypeLegalizer::
|
||||
ExpandResult_SIGN_EXTEND_INREG(SDNode *N, SDOperand &Lo, SDOperand &Hi) {
|
||||
GetExpandedOp(N->getOperand(0), Lo, Hi);
|
||||
MVT::ValueType EVT = N->getOperand(1).getValueType();
|
||||
MVT::ValueType EVT = cast<VTSDNode>(N->getOperand(1))->getVT();
|
||||
|
||||
if (MVT::getSizeInBits(EVT) <= MVT::getSizeInBits(Lo.getValueType())) {
|
||||
// sext_inreg the low part if needed.
|
||||
|
Loading…
x
Reference in New Issue
Block a user