File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -572,9 +572,8 @@ bool SPIRVPrepareFunctions::removeAggregateTypesFromCalls(Function *F) {
572572 if (!CB->getCalledOperand () || CB->getCalledFunction ())
573573 continue ;
574574 if (CB->getType ()->isAggregateType () ||
575- any_of (CB->args (), [](auto &&Arg) {
576- return Arg->getType ()->isAggregateType ();
577- }))
575+ any_of (CB->args (),
576+ [](auto &&Arg) { return Arg->getType ()->isAggregateType (); }))
578577 Calls.emplace_back (CB, nullptr );
579578 }
580579 }
@@ -588,7 +587,7 @@ bool SPIRVPrepareFunctions::removeAggregateTypesFromCalls(Function *F) {
588587 SmallVector<std::pair<int , Type *>> ChangedTypes;
589588 SmallVector<Type *> NewArgTypes;
590589
591- Type* RetTy = CB->getType ();
590+ Type * RetTy = CB->getType ();
592591 if (RetTy->isAggregateType ()) {
593592 ChangedTypes.emplace_back (-1 , RetTy);
594593 RetTy = B.getInt32Ty ();
@@ -608,8 +607,8 @@ bool SPIRVPrepareFunctions::removeAggregateTypesFromCalls(Function *F) {
608607 if (!CB->hasName ())
609608 CB->setName (" spv.mutated_callsite." + F->getName ());
610609 else
611- CB->setName (
612- " spv.named_mutated_callsite. " + F-> getName () + " . " + CB->getName ());
610+ CB->setName (" spv.named_mutated_callsite. " + F-> getName () + " . " +
611+ CB->getName ());
613612
614613 addFunctionTypeMutation (
615614 F->getParent ()->getOrInsertNamedMetadata (" spv.mutated_callsites" ),
You can’t perform that action at this time.
0 commit comments