mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-15 15:33:56 +00:00
Fix Windows build that fails if a class has a member with the same naem
This commit is contained in:
parent
702a976c12
commit
26c5cf8fa0
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user