Fix syntax of iterate_complex example. Noticed by Martin!
authorEric Christopher <echristo@apple.com>
Sat, 8 Nov 2008 08:20:49 +0000 (08:20 +0000)
committerEric Christopher <echristo@apple.com>
Sat, 8 Nov 2008 08:20:49 +0000 (08:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58900 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ProgrammersManual.html

index e859098d1546e276bfbe3e9a6692640af539ddf7..e7e4ce861547011959895ac474bf4f4044b6be3a 100644 (file)
@@ -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>