Skip to content

Commit 481b436

Browse files
authored
[Opaque pointer] Recover ARM changes (#11906)
Fix #11905
1 parent 2adc50e commit 481b436

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/ARM/ARMFastISel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2180,7 +2180,7 @@ unsigned ARMFastISel::ARMSelectCallOp(bool UseReg) {
21802180

21812181
unsigned ARMFastISel::getLibcallReg(const Twine &Name) {
21822182
// Manually compute the global's type to avoid building it when unnecessary.
2183-
Type *GVTy = Type::getInt32PtrTy(*Context, /*AS=*/0);
2183+
Type *GVTy = PointerType::get(*Context, /*AS=*/0);
21842184
EVT LCREVT = TLI.getValueType(DL, GVTy);
21852185
if (!LCREVT.isSimple()) return 0;
21862186

@@ -2964,7 +2964,7 @@ unsigned ARMFastISel::ARMLowerPICELF(const GlobalValue *GV, MVT VT) {
29642964
/*AddCurrentAddress=*/UseGOT_PREL);
29652965

29662966
Align ConstAlign =
2967-
MF->getDataLayout().getPrefTypeAlign(Type::getInt32PtrTy(*Context));
2967+
MF->getDataLayout().getPrefTypeAlign(PointerType::get(*Context, 0));
29682968
unsigned Idx = MF->getConstantPool()->getConstantPoolIndex(CPV, ConstAlign);
29692969
MachineMemOperand *CPMMO =
29702970
MF->getMachineMemOperand(MachinePointerInfo::getConstantPool(*MF),

0 commit comments

Comments
 (0)