Skip to content

Commit fdf99b2

Browse files
committed
[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.
1 parent 5e09c4e commit fdf99b2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/AMDGPU/SIFrameLowering.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,11 +1826,9 @@ bool SIFrameLowering::hasFP(const MachineFunction &MF) const {
18261826
// functions may need to set up a stack pointer in some situations.
18271827
bool SIFrameLowering::requiresStackPointerReference(
18281828
const MachineFunction &MF) const {
1829-
bool IsChainFunction = MF.getInfo<SIMachineFunctionInfo>()->isChainFunction();
1830-
18311829
// Callable functions always require a stack pointer reference.
18321830
assert((MF.getInfo<SIMachineFunctionInfo>()->isEntryFunction() ||
1833-
IsChainFunction) &&
1831+
MF.getInfo<SIMachineFunctionInfo>()->isChainFunction()) &&
18341832
"only expected to call this for entry points and chain functions");
18351833

18361834
const MachineFrameInfo &MFI = MF.getFrameInfo();

0 commit comments

Comments
 (0)