mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Fix Another Cast
Properly cast code to eliminate cast-away-const errors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4ee576fac3
commit
ef44c35359
@ -1017,7 +1017,8 @@ SDValue HexagonTargetLowering::LowerGLOBALADDRESS(SDValue Op,
|
||||
Result = DAG.getTargetGlobalAddress(GV, dl, getPointerTy(), Offset);
|
||||
|
||||
HexagonTargetObjectFile &TLOF =
|
||||
(HexagonTargetObjectFile&)getObjFileLowering();
|
||||
static_cast<HexagonTargetObjectFile &>(
|
||||
const_cast<TargetLoweringObjectFile &>(getObjFileLowering()));
|
||||
if (TLOF.IsGlobalInSmallSection(GV, getTargetMachine())) {
|
||||
return DAG.getNode(HexagonISD::CONST32_GP, dl, getPointerTy(), Result);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user