forked from OSchip/llvm-project
Fix structural comparison of template template arguments to compare the
right union member. Should fix the armv8 buildbot.
This commit is contained in:
parent
2abc33683b
commit
2d4035e493
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue