Skip to content

Commit

Permalink
[Xtensa] Fix Clang warnings after llvm#92960
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Jun 4, 2024
1 parent 85daa95 commit dd82fd4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/Target/Xtensa/XtensaFrameLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ using namespace llvm;
XtensaFrameLowering::XtensaFrameLowering(const XtensaSubtarget &STI)
: TargetFrameLowering(TargetFrameLowering::StackGrowsDown, Align(4), 0,
Align(4)),
STI(STI), TII(*STI.getInstrInfo()), TRI(STI.getRegisterInfo()) {}
TII(*STI.getInstrInfo()), TRI(STI.getRegisterInfo()) {}

bool XtensaFrameLowering::hasFP(const MachineFunction &MF) const {
const MachineFrameInfo &MFI = MF.getFrameInfo();
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/Target/Xtensa/XtensaFrameLowering.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class XtensaInstrInfo;
class XtensaRegisterInfo;

class XtensaFrameLowering : public TargetFrameLowering {
const XtensaSubtarget &STI;
const XtensaInstrInfo &TII;
const XtensaRegisterInfo *TRI;

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/Xtensa/XtensaRegisterInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TargetRegisterClass;
class XtensaInstrInfo;
class XtensaSubtarget;

struct XtensaRegisterInfo : public XtensaGenRegisterInfo {
class XtensaRegisterInfo : public XtensaGenRegisterInfo {
public:
const XtensaSubtarget &Subtarget;

Expand Down

0 comments on commit dd82fd4

Please sign in to comment.