projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6b6080
)
Make sure to call the derived visit versions from the ranged iterator.
author
Chris Lattner
<sabre@nondot.org>
Fri, 10 May 2002 22:21:05 +0000
(22:21 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 10 May 2002 22:21:05 +0000
(22:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2607
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/InstVisitor.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/InstVisitor.h
b/include/llvm/Support/InstVisitor.h
index 66992396b14295034ed4b49952b057003d1c5c5c..fdf67319a5c3f2b7382816bcd928c78566c5225d 100644
(file)
--- 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...