Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Clang] Loop over FieldDecls instead of all Decls #99574

Merged
merged 2 commits into from
Jul 18, 2024

Commits on Jul 18, 2024

  1. [Clang] Loop over FieldDecls instead of all Decls

    Only FieldDecls are important when determining GEP indices. A struct
    defined within another struct has the same semantics as if it were
    defined outside of the struct. So there's no need to look into
    RecordDecls that aren't a field.
    
    See commit 5bcf31e ("[Clang] Loop over FieldDecls instead of all Decls (llvm#89453)")
    
    Fixes 2039.
    bwendling committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    f907be4 View commit details
    Browse the repository at this point in the history
  2. Reformat

    bwendling committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    30a32f1 View commit details
    Browse the repository at this point in the history