This is an archive of the discontinued LLVM Phabricator instance.

[ASTImporter] Fix structural inequivalency of forward EnumDecl
ClosedPublic

Authored by martong on Aug 8 2018, 6:11 AM.

Details

Summary

Currently we consider one forward declared RecordDecl and another with a
definition equal. We have to do the same in case of enums.

Diff Detail

Repository
rL LLVM

Event Timeline

martong created this revision.Aug 8 2018, 6:11 AM
martong retitled this revision from Fix structural inequivalency of forward EnumDecl to [ASTImporter] Fix structural inequivalency of forward EnumDecl.Aug 8 2018, 9:48 AM
a_sidorin accepted this revision.Aug 8 2018, 3:39 PM

Yes, this seems to be correct. Thanks!

lib/AST/ASTStructuralEquivalence.cpp
1182 ↗(On Diff #159697)

enums

This revision is now accepted and ready to land.Aug 8 2018, 3:39 PM
This revision was automatically updated to reflect the committed changes.