The comparison of AttributeSets stopped after seeing a matching type attribute.
Subsequent mismatching attributes were not detected.
This caused a crash in the swift compiler in case one of the AttributeSet contained a swifterror attribute (after the matching type attribute).
rdar://problem/70573980