llvm.org GIT mirror llvm / 7d7668e
examples: Remove implicit ilist iterator conversions, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252379 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan P. N. Exon Smith 3 years ago
8 changed file(s) with 10 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
6363 IntegerType::getInt8Ty(mod->getContext()))), NULL));
6464 {
6565 Function::arg_iterator args = main_func->arg_begin();
66 Value *arg_0 = args++;
66 Value *arg_0 = &*args++;
6767 arg_0->setName("argc");
68 Value *arg_1 = args++;
68 Value *arg_1 = &*args++;
6969 arg_1->setName("argv");
7070 }
7171
5151 Value *Two = ConstantInt::get(Type::getInt32Ty(Context), 2);
5252
5353 // Get pointer to the integer argument of the add1 function...
54 Argument *ArgX = FibF->arg_begin(); // Get the arg.
54 Argument *ArgX = &*FibF->arg_begin(); // Get the arg.
5555 ArgX->setName("AnArg"); // Give it a nice symbolic name for fun.
5656
5757 // Create the true_block.
7979
8080 // Get pointers to the integer argument of the add1 function...
8181 assert(Add1F->arg_begin() != Add1F->arg_end()); // Make sure there's an arg
82 Argument *ArgX = Add1F->arg_begin(); // Get the arg
82 Argument *ArgX = &*Add1F->arg_begin(); // Get the arg
8383 ArgX->setName("AnArg"); // Give it a nice symbolic name for fun.
8484
8585 // Create the add instruction, inserting it into the end of BB.
10841084 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]);
10851085
10861086 // Store the initial value into the alloca.
1087 C.getBuilder().CreateStore(AI, Alloca);
1087 C.getBuilder().CreateStore(&*AI, Alloca);
10881088
10891089 // Add arguments to variable symbol table.
10901090 C.NamedValues[Args[Idx]] = Alloca;
10831083 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]);
10841084
10851085 // Store the initial value into the alloca.
1086 C.getBuilder().CreateStore(AI, Alloca);
1086 C.getBuilder().CreateStore(&*AI, Alloca);
10871087
10881088 // Add arguments to variable symbol table.
10891089 C.NamedValues[Args[Idx]] = Alloca;
10831083 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]);
10841084
10851085 // Store the initial value into the alloca.
1086 C.getBuilder().CreateStore(AI, Alloca);
1086 C.getBuilder().CreateStore(&*AI, Alloca);
10871087
10881088 // Add arguments to variable symbol table.
10891089 C.NamedValues[Args[Idx]] = Alloca;
10831083 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]);
10841084
10851085 // Store the initial value into the alloca.
1086 C.getBuilder().CreateStore(AI, Alloca);
1086 C.getBuilder().CreateStore(&*AI, Alloca);
10871087
10881088 // Add arguments to variable symbol table.
10891089 C.NamedValues[Args[Idx]] = Alloca;
4949
5050 // Get pointers to the integer argument of the add1 function...
5151 assert(Add1F->arg_begin() != Add1F->arg_end()); // Make sure there's an arg
52 Argument *ArgX = Add1F->arg_begin(); // Get the arg
52 Argument *ArgX = &*Add1F->arg_begin(); // Get the arg
5353 ArgX->setName("AnArg"); // Give it a nice symbolic name for fun.
5454
5555 // Create the add instruction, inserting it into the end of BB.
7979 Value *Two = ConstantInt::get(Type::getInt32Ty(M->getContext()), 2);
8080
8181 // Get pointer to the integer argument of the add1 function...
82 Argument *ArgX = FibF->arg_begin(); // Get the arg.
82 Argument *ArgX = &*FibF->arg_begin(); // Get the arg.
8383 ArgX->setName("AnArg"); // Give it a nice symbolic name for fun.
8484
8585 // Create the true_block.