diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2024-01-08 15:57:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-08 15:57:53 +0000 |
commit | 34dbaddc6fa1ce0892ecf3ca06866e7038b2a9b3 (patch) | |
tree | 912c75e4d373b7bdc04407488e0071ce02adb493 /clang/lib/Lex/ModuleMap.cpp | |
parent | 036e48e2f5f890e1f9574cdb610e2336f12038a2 (diff) | |
download | llvm-34dbaddc6fa1ce0892ecf3ca06866e7038b2a9b3.zip llvm-34dbaddc6fa1ce0892ecf3ca06866e7038b2a9b3.tar.gz llvm-34dbaddc6fa1ce0892ecf3ca06866e7038b2a9b3.tar.bz2 |
[clang][ASTImporter] Only reorder fields of RecordDecls (#77079)
Prior to `e9536698720ec524cc8b72599363622bc1a31558`
(https://reviews.llvm.org/D154764) we only re-ordered the fields of
`RecordDecl`s. The change refactored this logic to make sure
`FieldDecl`s are imported before other member decls. However, this
change also widened the types of `DeclContext`s we consider for
re-ordering from `RecordDecl` to anything that's a `DeclContext`. This
seems to have been just a drive-by cleanup.
Internally we've seen numerous crashes in LLDB where we try to perform
this re-ordering on fields of `ObjCInterfaceDecl`s.
This patch restores old behaviour where we limit the re-ordering to just
`RecordDecl`s.
rdar://119343184
rdar://119636274
rdar://119832131
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions