Fix usage example.
authorNick Lewycky <nicholas@mxc.ca>
Mon, 9 Oct 2006 18:33:08 +0000 (18:33 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 9 Oct 2006 18:33:08 +0000 (18:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30837 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/InstVisitor.h

index 02027d8bb434ba7fdefef243a2deb2d62a48c727..ca45d4c5d6d3b33ed8ed6dee19ca655fc0597e0a 100644 (file)
@@ -53,7 +53,7 @@ class AllocationInst;
 ///    unsigned Count;
 ///    CountMallocVisitor() : Count(0) {}
 ///
-///    void visitMallocInst(MallocInst *MI) { ++Count; }
+///    void visitMallocInst(MallocInst &MI) { ++Count; }
 ///  };
 ///
 ///  And this class would be used like this: