Skip to content

Commit 8d8a496

Browse files
committed
LocalStackSlotAllocation: Swap order of check
1 parent 4cff1b4 commit 8d8a496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/LocalStackSlotAllocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ bool LocalStackSlotPass::runOnMachineFunction(MachineFunction &MF) {
117117

118118
// If the target doesn't want/need this pass, or if there are no locals
119119
// to consider, early exit.
120-
if (!TRI->requiresVirtualBaseRegisters(MF) || LocalObjectCount == 0)
120+
if (LocalObjectCount == 0 || !TRI->requiresVirtualBaseRegisters(MF))
121121
return true;
122122

123123
// Make sure we have enough space to store the local offsets.

0 commit comments

Comments
 (0)