Make sure to call the derived visit versions from the ranged iterator.

llvm-svn: 2607
This commit is contained in:
Chris Lattner 2002-05-10 22:21:05 +00:00
parent e7ba5fb065
commit d5696e7125
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ struct InstVisitor {
template<class Iterator>
void visit(Iterator Start, Iterator End) {
while (Start != End)
visit(*Start++);
((SubClass*)this)->visit(*Start++);
}
// Define visitors for modules, functions and basic blocks...