mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-10-07 10:54:01 +00:00
[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:
parent
5e09c4e6a8
commit
fdf99b21f3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user