diff --git a/llvm/lib/Target/AMDGPU/AMDGPUArgumentUsageInfo.h b/llvm/lib/Target/AMDGPU/AMDGPUArgumentUsageInfo.h index 576e6cfe929e..22d29a2c9935 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUArgumentUsageInfo.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUArgumentUsageInfo.h @@ -27,7 +27,7 @@ private: friend class AMDGPUArgumentUsageInfo; union { - Register Reg; + MCRegister Reg; unsigned StackOffset; }; @@ -69,7 +69,7 @@ public: return !IsStack; } - Register getRegister() const { + MCRegister getRegister() const { assert(!IsStack); return Reg; } diff --git a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h index cf1629fda0af..57a89d9acc81 100644 --- a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h +++ b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h @@ -684,9 +684,9 @@ public: return ArgInfo.getPreloadedValue(Value); } - Register getPreloadedReg(AMDGPUFunctionArgInfo::PreloadedValue Value) const { + MCRegister getPreloadedReg(AMDGPUFunctionArgInfo::PreloadedValue Value) const { auto Arg = std::get<0>(ArgInfo.getPreloadedValue(Value)); - return Arg ? Arg->getRegister() : Register(); + return Arg ? Arg->getRegister() : MCRegister(); } unsigned getGITPtrHigh() const {