aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/XCore
diff options
context:
space:
mode:
authorPaulo Matos <pmatos@igalia.com>2023-11-07 17:26:26 +0100
committerGitHub <noreply@github.com>2023-11-07 17:26:26 +0100
commit7b9d73c2f90c0ed8497339a16fc39785349d9610 (patch)
tree5f31fd1d5ffc20ce828ccf3b3d26a969f0528ba7 /llvm/lib/Target/XCore
parent75d6795e420274346b14aca8b6bd49bfe6030eeb (diff)
downloadllvm-7b9d73c2f90c0ed8497339a16fc39785349d9610.zip
llvm-7b9d73c2f90c0ed8497339a16fc39785349d9610.tar.gz
llvm-7b9d73c2f90c0ed8497339a16fc39785349d9610.tar.bz2
[NFC] Remove Type::getInt8PtrTy (#71029)
Replace this with PointerType::getUnqual(). Followup to the opaque pointer transition. Fixes an in-code TODO item.
Diffstat (limited to 'llvm/lib/Target/XCore')
-rw-r--r--llvm/lib/Target/XCore/XCoreISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/XCore/XCoreISelLowering.cpp b/llvm/lib/Target/XCore/XCoreISelLowering.cpp
index 4604bcc..4f4fccd 100644
--- a/llvm/lib/Target/XCore/XCoreISelLowering.cpp
+++ b/llvm/lib/Target/XCore/XCoreISelLowering.cpp
@@ -292,7 +292,7 @@ LowerGlobalAddress(SDValue Op, SelectionDAG &DAG) const
return GA;
} else {
// Ideally we would not fold in offset with an index <= 11.
- Type *Ty = Type::getInt8PtrTy(*DAG.getContext());
+ Type *Ty = PointerType::getUnqual(*DAG.getContext());
Constant *GA = ConstantExpr::getBitCast(const_cast<GlobalValue*>(GV), Ty);
Ty = Type::getInt32Ty(*DAG.getContext());
Constant *Idx = ConstantInt::get(Ty, Offset);