mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:49:45 +00:00
LocalStackSlotAllocation: Swap order of check
This commit is contained in:
parent
7a72eeae37
commit
cc3396a954
@ -117,7 +117,7 @@ bool LocalStackSlotPass::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
||||
// If the target doesn't want/need this pass, or if there are no locals
|
||||
// to consider, early exit.
|
||||
if (!TRI->requiresVirtualBaseRegisters(MF) || LocalObjectCount == 0)
|
||||
if (LocalObjectCount == 0 || !TRI->requiresVirtualBaseRegisters(MF))
|
||||
return true;
|
||||
|
||||
// Make sure we have enough space to store the local offsets.
|
||||
|
Loading…
Reference in New Issue
Block a user