TypeVisitor doesn't visit Stmts.

llvm-svn: 104332
This commit is contained in:
Nick Lewycky 2010-05-21 18:04:30 +00:00
parent 058a207436
commit 1a23f26832
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
//===--- TypeVisitor.h - Visitor for Stmt subclasses ------------*- C++ -*-===//
//===--- TypeVisitor.h - Visitor for Type subclasses ------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@ -25,7 +25,7 @@ template<typename ImplClass, typename RetTy=void>
class TypeVisitor {
public:
RetTy Visit(Type *T) {
// Top switch stmt: dispatch to VisitFooStmt for each FooStmt.
// Top switch stmt: dispatch to VisitFooType for each FooType.
switch (T->getTypeClass()) {
default: assert(0 && "Unknown type class!");
#define ABSTRACT_TYPE(CLASS, PARENT)