Fix structural comparison of template template arguments to compare the

right union member.

Should fix the armv8 buildbot.
This commit is contained in:
Richard Smith 2020-11-11 19:05:32 -08:00
parent 2abc33683b
commit 2d4035e493
1 changed files with 5 additions and 2 deletions

View File

@ -288,11 +288,14 @@ bool TemplateArgument::structurallyEquals(const TemplateArgument &Other) const {
case Null:
case Type:
case Expression:
case Template:
case TemplateExpansion:
case NullPtr:
return TypeOrValue.V == Other.TypeOrValue.V;
case Template:
case TemplateExpansion:
return TemplateArg.Name == Other.TemplateArg.Name &&
TemplateArg.NumExpansions == Other.TemplateArg.NumExpansions;
case Declaration:
return getAsDecl() == Other.getAsDecl();