[llvm] ff70c25 - [Attributor][NFC] Expand `auto` types (clang-fix-it)
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 7 21:40:54 PDT 2020
Author: Johannes Doerfert
Date: 2020-09-07T23:38:08-05:00
New Revision: ff70c25d76561d0789743fa9f718dcd520199a7c
URL: https://github.com/llvm/llvm-project/commit/ff70c25d76561d0789743fa9f718dcd520199a7c
DIFF: https://github.com/llvm/llvm-project/commit/ff70c25d76561d0789743fa9f718dcd520199a7c.diff
LOG: [Attributor][NFC] Expand `auto` types (clang-fix-it)
Added:
Modified:
llvm/lib/Transforms/IPO/Attributor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp
index f020c4aaf1df..d5c33f08827d 100644
--- a/llvm/lib/Transforms/IPO/Attributor.cpp
+++ b/llvm/lib/Transforms/IPO/Attributor.cpp
@@ -1449,7 +1449,7 @@ static void createShallowWrapper(Function &F) {
BasicBlock *EntryBB = BasicBlock::Create(Ctx, "entry", Wrapper);
SmallVector<Value *, 8> Args;
- auto FArgIt = F.arg_begin();
+ Argument *FArgIt = F.arg_begin();
for (Argument &Arg : Wrapper->args()) {
Args.push_back(&Arg);
Arg.setName((FArgIt++)->getName());
@@ -1773,8 +1773,8 @@ ChangeStatus Attributor::rewriteFunctionSignatures(
assert(Success && "Assumed call site replacement to succeed!");
// Rewire the arguments.
- auto OldFnArgIt = OldFn->arg_begin();
- auto NewFnArgIt = NewFn->arg_begin();
+ Argument *OldFnArgIt = OldFn->arg_begin();
+ Argument *NewFnArgIt = NewFn->arg_begin();
for (unsigned OldArgNum = 0; OldArgNum < ARIs.size();
++OldArgNum, ++OldFnArgIt) {
if (const std::unique_ptr<ArgumentReplacementInfo> &ARI =
More information about the llvm-commits
mailing list