================ @@ -799,6 +799,19 @@ static bool IsEquivalentExceptionSpec(StructuralEquivalenceContext &Context, return true; } +// Determine structural equivalence of two instances of +// HLSLAttributedResourceType::Attributes +static bool +IsStructurallyEquivalent(StructuralEquivalenceContext &Context, + const HLSLAttributedResourceType::Attributes &Attrs1, + const HLSLAttributedResourceType::Attributes &Attrs2) { + if (Attrs1.ResourceClass != Attrs2.ResourceClass) ---------------- bogner wrote:
`std::tie` doesn't incur any allocations. You can expect `std::tie(a, b) == std::tie(c, d)` to generate the same code as `a == b && c == d`. See https://godbolt.org/z/d8x46Gzor https://github.com/llvm/llvm-project/pull/106181 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits