Skip to content

Commit 78a4b9d

Browse files
authored
[polly] Prefer PointerType::get with LLVMContext over Type (NFC) (#133868)
Part of #123569
1 parent d579622 commit 78a4b9d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

polly/lib/CodeGen/LoopGeneratorsGOMP.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,9 @@ void ParallelLoopGeneratorGOMP::createCallSpawnThreads(Value *SubFn,
3030
if (!F) {
3131
GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
3232

33-
Type *Params[] = {PointerType::getUnqual(FunctionType::get(
34-
Builder.getVoidTy(), Builder.getPtrTy(), false)),
35-
Builder.getPtrTy(),
36-
Builder.getInt32Ty(),
37-
LongType,
38-
LongType,
39-
LongType};
33+
Type *Params[] = {
34+
Builder.getPtrTy(), Builder.getPtrTy(), Builder.getInt32Ty(),
35+
LongType, LongType, LongType};
4036

4137
FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), Params, false);
4238
F = Function::Create(Ty, Linkage, Name, M);

0 commit comments

Comments
 (0)