Skip to content

Commit

Permalink
[RISCV] Implement RISCVRegisterInfo::getPointerRegClass
Browse files Browse the repository at this point in the history
Fixes bug 43041

Differential Revision: https://reviews.llvm.org/D66752

llvm-svn: 370113
  • Loading branch information
luismarques committed Aug 27, 2019
1 parent 33585dd commit c894c6c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions llvm/lib/Target/RISCV/RISCVRegisterInfo.h
Expand Up @@ -52,6 +52,12 @@ struct RISCVRegisterInfo : public RISCVGenRegisterInfo {
bool trackLivenessAfterRegAlloc(const MachineFunction &) const override {
return true;
}

const TargetRegisterClass *
getPointerRegClass(const MachineFunction &MF,
unsigned Kind = 0) const override {
return &RISCV::GPRRegClass;
}
};
}

Expand Down

0 comments on commit c894c6c

Please sign in to comment.