mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-03 17:39:48 +00:00
Make sure to call the derived visit versions from the ranged iterator.
llvm-svn: 2607
This commit is contained in:
parent
590bcc9629
commit
708b869951
@ -73,7 +73,7 @@ struct InstVisitor {
|
|||||||
template<class Iterator>
|
template<class Iterator>
|
||||||
void visit(Iterator Start, Iterator End) {
|
void visit(Iterator Start, Iterator End) {
|
||||||
while (Start != End)
|
while (Start != End)
|
||||||
visit(*Start++);
|
((SubClass*)this)->visit(*Start++);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Define visitors for modules, functions and basic blocks...
|
// Define visitors for modules, functions and basic blocks...
|
||||||
|
Loading…
Reference in New Issue
Block a user