Skip to content

Commit 2fe9b56

Browse files
junlarsengithub-actions[bot]
authored andcommitted
Automerge: [CodeGen][XCore] Replace PointerType::getUnqual(Type) with opaque version (NFC) (#126279)
Follow-up to #123569
2 parents d1e828b + 4e29148 commit 2fe9b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/Targets/XCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ RValue XCoreABIInfo::EmitVAArg(CodeGenFunction &CGF, Address VAListAddr,
149149
llvm::Type *ArgTy = CGT.ConvertType(Ty);
150150
if (AI.canHaveCoerceToType() && !AI.getCoerceToType())
151151
AI.setCoerceToType(ArgTy);
152-
llvm::Type *ArgPtrTy = llvm::PointerType::getUnqual(ArgTy);
152+
llvm::Type *ArgPtrTy = llvm::PointerType::getUnqual(ArgTy->getContext());
153153

154154
Address Val = Address::invalid();
155155
CharUnits ArgSize = CharUnits::Zero();

0 commit comments

Comments
 (0)