AMDGPU: Use MCRegister for preloaded arguments

Attempt to fix build error with ancient GCC
This commit is contained in:
Matt Arsenault 2020-07-20 13:25:07 -04:00
parent f0d78248e8
commit ce76d15a70
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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 {