mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Fix an overly indented line. Remove an 'else' after an 'if' that returns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154479 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c42e640dc8
commit
7eb46d834c
@ -4388,9 +4388,8 @@ static unsigned getTruncatedArgReg(const SDValue &N) {
|
|||||||
const SDValue &CFR = Ext.getOperand(0);
|
const SDValue &CFR = Ext.getOperand(0);
|
||||||
if (CFR.getOpcode() == ISD::CopyFromReg)
|
if (CFR.getOpcode() == ISD::CopyFromReg)
|
||||||
return cast<RegisterSDNode>(CFR.getOperand(1))->getReg();
|
return cast<RegisterSDNode>(CFR.getOperand(1))->getReg();
|
||||||
else
|
if (CFR.getOpcode() == ISD::TRUNCATE)
|
||||||
if (CFR.getOpcode() == ISD::TRUNCATE)
|
return getTruncatedArgReg(CFR);
|
||||||
return getTruncatedArgReg(CFR);
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -4419,7 +4418,7 @@ SelectionDAGBuilder::EmitFuncArgumentDbgValue(const Value *V, MDNode *Variable,
|
|||||||
// Some arguments' frame index is recorded during argument lowering.
|
// Some arguments' frame index is recorded during argument lowering.
|
||||||
Offset = FuncInfo.getArgumentFrameIndex(Arg);
|
Offset = FuncInfo.getArgumentFrameIndex(Arg);
|
||||||
if (Offset)
|
if (Offset)
|
||||||
Reg = TRI->getFrameRegister(MF);
|
Reg = TRI->getFrameRegister(MF);
|
||||||
|
|
||||||
if (!Reg && N.getNode()) {
|
if (!Reg && N.getNode()) {
|
||||||
if (N.getOpcode() == ISD::CopyFromReg)
|
if (N.getOpcode() == ISD::CopyFromReg)
|
||||||
|
Loading…
Reference in New Issue
Block a user