diff --git a/clang/lib/Index/USRGeneration.cpp b/clang/lib/Index/USRGeneration.cpp --- a/clang/lib/Index/USRGeneration.cpp +++ b/clang/lib/Index/USRGeneration.cpp @@ -179,7 +179,7 @@ bool USRGenerator::EmitDeclName(const NamedDecl *D) { const unsigned startSize = Buf.size(); - D->printName(Out); + Out << D->getDeclName(); const unsigned endSize = Buf.size(); return startSize == endSize; }