summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2008-11-08 08:20:49 +0000
committerEric Christopher <echristo@apple.com>2008-11-08 08:20:49 +0000
commit6e670388c0b9212d53e42668be68b72ab93a86a8 (patch)
tree9ca2fc0d2f33604e10c2d3b4d985c8ff7ea3d356 /llvm
parent436bdcdcca0e8dbb83348384c74818ba4ec1c696 (diff)
downloadbcm5719-llvm-6e670388c0b9212d53e42668be68b72ab93a86a8.tar.gz
bcm5719-llvm-6e670388c0b9212d53e42668be68b72ab93a86a8.zip
Fix syntax of iterate_complex example. Noticed by Martin!
llvm-svn: 58900
Diffstat (limited to 'llvm')
-rw-r--r--llvm/docs/ProgrammersManual.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/ProgrammersManual.html b/llvm/docs/ProgrammersManual.html
index e859098d154..e7e4ce86154 100644
--- a/llvm/docs/ProgrammersManual.html
+++ b/llvm/docs/ProgrammersManual.html
@@ -1614,7 +1614,7 @@ class OurFunctionPass : public FunctionPass {
virtual runOnFunction(Function&amp; F) {
for (Function::iterator b = F.begin(), be = F.end(); b != be; ++b) {
- for (BasicBlock::iterator i = b-&gt;begin(); ie = b-&gt;end(); i != ie; ++i) {
+ for (BasicBlock::iterator i = b-&gt;begin(), ie = b-&gt;end(); i != ie; ++i) {
if (<a href="#CallInst">CallInst</a>* callInst = <a href="#isa">dyn_cast</a>&lt;<a
href="#CallInst">CallInst</a>&gt;(&amp;*i)) {
// <i>We know we've encountered a call instruction, so we</i>
OpenPOWER on IntegriCloud