mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
Tolerate instrs with extra args
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21982 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
af94d58665
commit
2a82ef317c
@ -118,7 +118,7 @@ void PEI::calculateCallerSavedRegisters(MachineFunction &Fn) {
|
||||
for (MachineBasicBlock::iterator I = BB->begin(); I != BB->end(); )
|
||||
if (I->getOpcode() == FrameSetupOpcode ||
|
||||
I->getOpcode() == FrameDestroyOpcode) {
|
||||
assert(I->getNumOperands() == 1 && "Call Frame Setup/Destroy Pseudo"
|
||||
assert(I->getNumOperands() >= 1 && "Call Frame Setup/Destroy Pseudo"
|
||||
" instructions should have a single immediate argument!");
|
||||
unsigned Size = I->getOperand(0).getImmedValue();
|
||||
if (Size > MaxCallFrameSize) MaxCallFrameSize = Size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user