Skip to content

Commit 666970c

Browse files
committed
[RISCV] Remove unnecessary initialization from RISCVPostRAExpandPseudo pass constructor.
It is already initialized in RISCVTargetMachine.cpp
1 parent 5baf58b commit 666970c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ class RISCVPostRAExpandPseudo : public MachineFunctionPass {
3131
const RISCVInstrInfo *TII;
3232
static char ID;
3333

34-
RISCVPostRAExpandPseudo() : MachineFunctionPass(ID) {
35-
initializeRISCVPostRAExpandPseudoPass(*PassRegistry::getPassRegistry());
36-
}
34+
RISCVPostRAExpandPseudo() : MachineFunctionPass(ID) {}
3735

3836
bool runOnMachineFunction(MachineFunction &MF) override;
3937

0 commit comments

Comments
 (0)