[llvm-commits] CVS: llvm/include/llvm/Support/InstVisitor.h

Nick Lewycky nicholas at mxc.ca
Mon Oct 9 11:33:23 PDT 2006



Changes in directory llvm/include/llvm/Support:

InstVisitor.h updated: 1.40 -> 1.41
---
Log message:

Fix usage example.


---
Diffs of the changes:  (+1 -1)

 InstVisitor.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/Support/InstVisitor.h
diff -u llvm/include/llvm/Support/InstVisitor.h:1.40 llvm/include/llvm/Support/InstVisitor.h:1.41
--- llvm/include/llvm/Support/InstVisitor.h:1.40	Wed May 31 10:30:18 2006
+++ llvm/include/llvm/Support/InstVisitor.h	Mon Oct  9 13:33:08 2006
@@ -53,7 +53,7 @@
 ///    unsigned Count;
 ///    CountMallocVisitor() : Count(0) {}
 ///
-///    void visitMallocInst(MallocInst *MI) { ++Count; }
+///    void visitMallocInst(MallocInst &MI) { ++Count; }
 ///  };
 ///
 ///  And this class would be used like this:






More information about the llvm-commits mailing list