mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
Make sure to call the derived visit versions from the ranged iterator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2607 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d6b60805e8
commit
dd63a37c87
@ -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...
|
||||
|
Loading…
x
Reference in New Issue
Block a user