mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Use the known address space constant rather than checking it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214729 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0ce8757b56
commit
b47e0f1d8b
@ -706,7 +706,7 @@ SDValue AMDGPUTargetLowering::LowerGlobalAddress(AMDGPUMachineFunction* MFI,
|
||||
Offset = MFI->LocalMemoryObjects[GV];
|
||||
}
|
||||
|
||||
return DAG.getConstant(Offset, getPointerTy(G->getAddressSpace()));
|
||||
return DAG.getConstant(Offset, getPointerTy(AMDGPUAS::LOCAL_ADDRESS));
|
||||
}
|
||||
case AMDGPUAS::CONSTANT_ADDRESS: {
|
||||
MachineFrameInfo *FrameInfo = DAG.getMachineFunction().getFrameInfo();
|
||||
|
Loading…
x
Reference in New Issue
Block a user