diff options
Diffstat (limited to 'clang/lib/Index')
-rw-r--r-- | clang/lib/Index/USRGeneration.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Index/USRGeneration.cpp b/clang/lib/Index/USRGeneration.cpp index 16d89f8944a7..6bc0dab757ae 100644 --- a/clang/lib/Index/USRGeneration.cpp +++ b/clang/lib/Index/USRGeneration.cpp @@ -628,8 +628,9 @@ void USRGenerator::VisitType(QualType T) { if (const FunctionProtoType *FT = T->getAs<FunctionProtoType>()) { Out << 'F'; VisitType(FT->getResultType()); - for (FunctionProtoType::arg_type_iterator - I = FT->arg_type_begin(), E = FT->arg_type_end(); I!=E; ++I) { + for (FunctionProtoType::param_type_iterator I = FT->param_type_begin(), + E = FT->param_type_end(); + I != E; ++I) { VisitType(*I); } if (FT->isVariadic()) |