2 Commits

Author SHA1 Message Date
Matheus Izvekov
ad190fcf15
[clang] add fallback to expr in the template differ when comparing ValueDecl (#93266) 2024-05-24 11:38:22 -03:00
Matheus Izvekov
bd851eec34
[clang] Avoid crash due to unimplemented StructuralValue support in the template differ (#93265)
This was not implemented in
https://github.com/llvm/llvm-project/pull/78041 when StructuralValue
TemplateArguments were originally added.

This patch does not implement this functionality, it just falls back to
the expression when possible.

Otherwise, such as when dealing with canonical types to begin with, this
will just ignore the argument as if it wasn't even there.

Fixes https://github.com/llvm/llvm-project/issues/93068
2024-05-24 11:33:16 -03:00