This is an archive of the discontinued LLVM Phabricator instance.

[MergeFunctions] fix function attribute comparison in FunctionComparator
ClosedPublic

Authored by eeckstein on Nov 6 2020, 5:11 AM.

Details

Reviewers
t.p.northover
Summary

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

Diff Detail

Event Timeline

eeckstein created this revision.Nov 6 2020, 5:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 6 2020, 5:11 AM
eeckstein requested review of this revision.Nov 6 2020, 5:11 AM
t.p.northover accepted this revision.Nov 9 2020, 1:14 AM

I think this looks fine.

This revision is now accepted and ready to land.Nov 9 2020, 1:14 AM
t.p.northover closed this revision.Nov 9 2020, 1:46 AM

I've committed this for Erik as f7fe7ea24d3. Forgot to mention in the commit message that it was from him though, sorry.