summaryrefslogtreecommitdiff
path: root/examples/Fibonacci
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-11-07 00:55:46 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-11-07 00:55:46 +0000
commit7d7668eb6bc4f2b1984e5841b16d87b038256231 (patch)
tree846de68e4d22d4f53cc7bff8a2ddb44a70cc5c40 /examples/Fibonacci
parent38bab160815e57ae3aca8927c12ac4b18e2750c7 (diff)
downloadllvm-7d7668eb6bc4f2b1984e5841b16d87b038256231.tar.gz
examples: Remove implicit ilist iterator conversions, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252379 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/Fibonacci')
-rw-r--r--examples/Fibonacci/fibonacci.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Fibonacci/fibonacci.cpp b/examples/Fibonacci/fibonacci.cpp
index bb364fda584f..ecb49eb92e1a 100644
--- a/examples/Fibonacci/fibonacci.cpp
+++ b/examples/Fibonacci/fibonacci.cpp
@@ -52,7 +52,7 @@ static Function *CreateFibFunction(Module *M, LLVMContext &Context) {
Value *Two = ConstantInt::get(Type::getInt32Ty(Context), 2);
// Get pointer to the integer argument of the add1 function...
- Argument *ArgX = FibF->arg_begin(); // Get the arg.
+ Argument *ArgX = &*FibF->arg_begin(); // Get the arg.
ArgX->setName("AnArg"); // Give it a nice symbolic name for fun.
// Create the true_block.