[AMDGPU] Fix -Wunused-variable in SIFrameLowering.cpp (NFC)

/llvm-project/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp:1829:8: error: unused variable 'IsChainFunction' [-Werror,-Wunused-variable]
  bool IsChainFunction = MF.getInfo<SIMachineFunctionInfo>()->isChainFunction();
       ^
1 error generated.
This commit is contained in:
Jie Fu 2023-11-08 20:48:44 +08:00
parent 5e09c4e6a8
commit fdf99b21f3

View File

@ -1826,11 +1826,9 @@ bool SIFrameLowering::hasFP(const MachineFunction &MF) const {
// functions may need to set up a stack pointer in some situations.
bool SIFrameLowering::requiresStackPointerReference(
const MachineFunction &MF) const {
bool IsChainFunction = MF.getInfo<SIMachineFunctionInfo>()->isChainFunction();
// Callable functions always require a stack pointer reference.
assert((MF.getInfo<SIMachineFunctionInfo>()->isEntryFunction() ||
IsChainFunction) &&
MF.getInfo<SIMachineFunctionInfo>()->isChainFunction()) &&
"only expected to call this for entry points and chain functions");
const MachineFrameInfo &MFI = MF.getFrameInfo();