Author: David Blaikie Date: 2022-02-10T15:27:31-08:00 New Revision: 26c5cf8fa031f5143fd180fdc8d9dbc26a88e89e
URL: https://github.com/llvm/llvm-project/commit/26c5cf8fa031f5143fd180fdc8d9dbc26a88e89e DIFF: https://github.com/llvm/llvm-project/commit/26c5cf8fa031f5143fd180fdc8d9dbc26a88e89e.diff LOG: Fix Windows build that fails if a class has a member with the same naem Added: Modified: clang/lib/CodeGen/CGDebugInfo.cpp Removed: ################################################################################ diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index cca5576aac07..eb3f104f7eb9 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -5000,10 +5000,10 @@ static bool ReferencesAnonymousEntity(ArrayRef<TemplateArgument> Args) { case TemplateArgument::Type: { struct ReferencesAnonymous : public RecursiveASTVisitor<ReferencesAnonymous> { - bool ReferencesAnonymous = false; + bool RefAnon = false; bool VisitRecordType(RecordType *RT) { if (ReferencesAnonymousEntity(RT)) { - ReferencesAnonymous = true; + RefAnon = true; return false; } return true; @@ -5011,7 +5011,7 @@ static bool ReferencesAnonymousEntity(ArrayRef<TemplateArgument> Args) { }; ReferencesAnonymous RT; RT.TraverseType(TA.getAsType()); - if (RT.ReferencesAnonymous) + if (RT.RefAnon) return true; break; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits