From d5696e7125b4895d9d0192bcef723962872acb5f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 10 May 2002 22:21:05 +0000 Subject: [PATCH] Make sure to call the derived visit versions from the ranged iterator. llvm-svn: 2607 --- llvm/include/llvm/Support/InstVisitor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Support/InstVisitor.h b/llvm/include/llvm/Support/InstVisitor.h index 66992396b142..fdf67319a5c3 100644 --- a/llvm/include/llvm/Support/InstVisitor.h +++ b/llvm/include/llvm/Support/InstVisitor.h @@ -73,7 +73,7 @@ struct InstVisitor { template void visit(Iterator Start, Iterator End) { while (Start != End) - visit(*Start++); + ((SubClass*)this)->visit(*Start++); } // Define visitors for modules, functions and basic blocks...