[cfe-commits] r111089 - /cfe/trunk/lib/AST/StmtProfile.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Sat Aug 14 18:15:38 PDT 2010
Author: akirtzidis
Date: Sat Aug 14 20:15:38 2010
New Revision: 111089
URL: http://llvm.org/viewvc/llvm-project?rev=111089&view=rev
Log:
Call the correct base class in StmtProfiler::VisitUnresolvedLookupExpr.
Modified:
cfe/trunk/lib/AST/StmtProfile.cpp
Modified: cfe/trunk/lib/AST/StmtProfile.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/StmtProfile.cpp?rev=111089&r1=111088&r2=111089&view=diff
==============================================================================
--- cfe/trunk/lib/AST/StmtProfile.cpp (original)
+++ cfe/trunk/lib/AST/StmtProfile.cpp Sat Aug 14 20:15:38 2010
@@ -757,14 +757,18 @@
VisitType(S->getDestroyedType());
}
-void
-StmtProfiler::VisitUnresolvedLookupExpr(UnresolvedLookupExpr *S) {
- VisitExpr(S);
+void StmtProfiler::VisitOverloadExpr(OverloadExpr *S) {
VisitNestedNameSpecifier(S->getQualifier());
VisitName(S->getName());
ID.AddBoolean(S->hasExplicitTemplateArgs());
if (S->hasExplicitTemplateArgs())
- VisitTemplateArguments(S->getTemplateArgs(), S->getNumTemplateArgs());
+ VisitTemplateArguments(S->getExplicitTemplateArgs().getTemplateArgs(),
+ S->getExplicitTemplateArgs().NumTemplateArgs);
+}
+
+void
+StmtProfiler::VisitUnresolvedLookupExpr(UnresolvedLookupExpr *S) {
+ VisitOverloadExpr(S);
}
void StmtProfiler::VisitUnaryTypeTraitExpr(UnaryTypeTraitExpr *S) {
More information about the cfe-commits
mailing list