forked from OSchip/llvm-project
AMDGPU: Use MCRegister for preloaded arguments
Attempt to fix build error with ancient GCC
This commit is contained in:
parent
f0d78248e8
commit
ce76d15a70
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue