StackSlotColoring: Fix missing skipFunction check

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330606 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Arsenault
2018-04-23 15:51:21 +00:00
parent 91f2b63a06
commit 9269b2bccb
+3
View File
@@ -455,6 +455,9 @@ bool StackSlotColoring::runOnMachineFunction(MachineFunction &MF) {
<< "********** Function: " << MF.getName() << '\n';
});
if (skipFunction(MF.getFunction()))
return false;
MFI = &MF.getFrameInfo();
TII = MF.getSubtarget().getInstrInfo();
LS = &getAnalysis<LiveStacks>();