]> granicus.if.org Git - llvm/commitdiff
[RISCV] Implement RISCVRegisterInfo::getPointerRegClass
authorLuis Marques <luismarques@lowrisc.org>
Tue, 27 Aug 2019 21:37:57 +0000 (21:37 +0000)
committerLuis Marques <luismarques@lowrisc.org>
Tue, 27 Aug 2019 21:37:57 +0000 (21:37 +0000)
Fixes bug 43041

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370113 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/RISCV/RISCVRegisterInfo.h

index 4f339475508fd3ed5b11a1acc3ebc4e6085df74a..56a50fe6ddc0ca3c4178fcb10d86a69d3fa88e31 100644 (file)
@@ -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;
+  }
 };
 }