From: Matt Arsenault Date: Mon, 4 Aug 2014 16:55:35 +0000 (+0000) Subject: Use the known address space constant rather than checking it X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b47e0f1d8bc2be8f9be7d4911ed918c9d09d447a;p=oota-llvm.git 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 --- diff --git a/lib/Target/R600/AMDGPUISelLowering.cpp b/lib/Target/R600/AMDGPUISelLowering.cpp index ea6071bc245..4b6916ac984 100644 --- a/lib/Target/R600/AMDGPUISelLowering.cpp +++ b/lib/Target/R600/AMDGPUISelLowering.cpp @@ -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();