aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-10 22:21:05 +0000
committerChris Lattner <sabre@nondot.org>2002-05-10 22:21:05 +0000
commitdd63a37c8713902469d5f080380b0cb30373e67d (patch)
tree683ad4d574acb72b845f3eb339f1a5b2b5008c4d
parentd6b60805e8ff00c20321edf2a126ce6168439247 (diff)
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
-rw-r--r--include/llvm/Support/InstVisitor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/InstVisitor.h b/include/llvm/Support/InstVisitor.h
index 66992396b1..fdf67319a5 100644
--- a/include/llvm/Support/InstVisitor.h
+++ b/include/llvm/Support/InstVisitor.h
@@ -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...