[compiler-rt] [lld] [lldb] [clang] [libcxx] [llvm] [libcxxabi] [mlir] [flang] [clang-tools-extra] [libc] [libclc] [ELF] Add internal InputFile (PR #78944)

Andrew Ng via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 25 15:16:18 PST 2024


================

----------------
nga888 wrote:

Sorry for the delay to reply but I've been more busy of late. I can confirm that it was a downstream code path which was calling `getFile()` for a `SyntheticSection` that was causing the assertion. This downstream code was effectively ignoring any "internal" sections based on the return from `getFile()`. It now first filters out sections of type `SyntheticSection` to avoid the assertion.

Even though there's no upstream code path that hits this issue, I think updating that comment and `getFile()` would be worthwhile to avoid any confusion.

Thanks!

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


More information about the cfe-commits mailing list