diff --git a/llvm/include/llvm/Support/InstVisitor.h b/llvm/include/llvm/Support/InstVisitor.h index 02027d8bb434..ca45d4c5d6d3 100644 --- a/llvm/include/llvm/Support/InstVisitor.h +++ b/llvm/include/llvm/Support/InstVisitor.h @@ -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: