Attempt to fix build error with ancient GCC
friend class AMDGPUArgumentUsageInfo;
union {
- Register Reg;
+ MCRegister Reg;
unsigned StackOffset;
};
return !IsStack;
}
- Register getRegister() const {
+ MCRegister getRegister() const {
assert(!IsStack);
return Reg;
}
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 {