[Attributor][NFC] Expand `auto` types (clang-fix-it)

This commit is contained in:
Johannes Doerfert 2020-09-03 11:08:39 -05:00
parent 79651265b2
commit ff70c25d76
1 changed files with 3 additions and 3 deletions

View File

@ -1449,7 +1449,7 @@ static void createShallowWrapper(Function &F) {
BasicBlock *EntryBB = BasicBlock::Create(Ctx, "entry", Wrapper); BasicBlock *EntryBB = BasicBlock::Create(Ctx, "entry", Wrapper);
SmallVector<Value *, 8> Args; SmallVector<Value *, 8> Args;
auto FArgIt = F.arg_begin(); Argument *FArgIt = F.arg_begin();
for (Argument &Arg : Wrapper->args()) { for (Argument &Arg : Wrapper->args()) {
Args.push_back(&Arg); Args.push_back(&Arg);
Arg.setName((FArgIt++)->getName()); Arg.setName((FArgIt++)->getName());
@ -1773,8 +1773,8 @@ ChangeStatus Attributor::rewriteFunctionSignatures(
assert(Success && "Assumed call site replacement to succeed!"); assert(Success && "Assumed call site replacement to succeed!");
// Rewire the arguments. // Rewire the arguments.
auto OldFnArgIt = OldFn->arg_begin(); Argument *OldFnArgIt = OldFn->arg_begin();
auto NewFnArgIt = NewFn->arg_begin(); Argument *NewFnArgIt = NewFn->arg_begin();
for (unsigned OldArgNum = 0; OldArgNum < ARIs.size(); for (unsigned OldArgNum = 0; OldArgNum < ARIs.size();
++OldArgNum, ++OldFnArgIt) { ++OldArgNum, ++OldFnArgIt) {
if (const std::unique_ptr<ArgumentReplacementInfo> &ARI = if (const std::unique_ptr<ArgumentReplacementInfo> &ARI =