Skip to content

Commit 4e29148

Browse files
authored
[CodeGen][XCore] Replace PointerType::getUnqual(Type) with opaque version (NFC) (#126279)
Follow-up to #123569
1 parent ef23ba7 commit 4e29148

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)