Fix a regression form r137894. Make sure the custom BugReporterVisitors get registred as they were in EnhancedBugReport. Would be good to add a test for this.

llvm-svn: 137917
This commit is contained in:
Anna Zaks 2011-08-18 02:05:18 +00:00
parent 2b949c2b4b
commit ab935f26e6
1 changed files with 4 additions and 1 deletions

View File

@ -166,7 +166,10 @@ public:
BugReporterContext &BR);
virtual void registerInitialVisitors(BugReporterContext &BRC,
const ExplodedNode *N) {}
const ExplodedNode *N) {
for (Creators::iterator I = creators.begin(), E = creators.end(); I!=E; ++I)
I->first(BRC, I->second, N);
}
};
//===----------------------------------------------------------------------===//