[clang] [lldb] [ASTImporter][lldb] Avoid implicit imports in VisitFieldDecl (PR #107828)

Michael Buch via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 10 08:51:03 PDT 2024


Michael137 wrote:

Just to circle back on this. Managed to reduce the crash I was seeing to something pretty simple. The gist of the issue is that we silently create ODR violations in LLDB's scratch context (and LLDB uses `ODRHandlingType::Liberal`, so we try to continue `ASTImport`ing despite ODR violations). We kind of have to do so because production apps often do contain ODR violations. But these end up really confusing the decl bookkeeping that LLDB/ASTImporter does. I'll add the test-case (and skip/XFAIL it) shortly. Trying to make progress towards the larger refactor in the coming weeks/months.

https://github.com/llvm/llvm-project/pull/107828


More information about the cfe-commits mailing list