mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-13 08:46:22 +00:00
[polly] Prefer PointerType::get with LLVMContext over Type (NFC) (#133868)
Part of #123569
This commit is contained in:
parent
d579622b1e
commit
78a4b9d9b4
@ -30,13 +30,9 @@ void ParallelLoopGeneratorGOMP::createCallSpawnThreads(Value *SubFn,
|
||||
if (!F) {
|
||||
GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
|
||||
|
||||
Type *Params[] = {PointerType::getUnqual(FunctionType::get(
|
||||
Builder.getVoidTy(), Builder.getPtrTy(), false)),
|
||||
Builder.getPtrTy(),
|
||||
Builder.getInt32Ty(),
|
||||
LongType,
|
||||
LongType,
|
||||
LongType};
|
||||
Type *Params[] = {
|
||||
Builder.getPtrTy(), Builder.getPtrTy(), Builder.getInt32Ty(),
|
||||
LongType, LongType, LongType};
|
||||
|
||||
FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), Params, false);
|
||||
F = Function::Create(Ty, Linkage, Name, M);
|
||||
|
Loading…
x
Reference in New Issue
Block a user