[llvm] [ADT] Add standalone_debug attribute to SmallVectorBase (PR #82527)

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 12:15:27 PST 2024


rnk wrote:

I think it's worth debugging this a bit further first. Can you elaborate on the platform and tools you are using where the issue occurs?

I think the issue may be that `SmallVectorBase` has explicit template instantiations:
* declaration: https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/ADT/SmallVector.h#L1330
* definition: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Support/SmallVector.cpp#L159

This will cause clang to only emit debug info for `SmallVectorBase<uint(32|64)_t>` in `SmallVector.cpp`.

In your build, can you confirm that the LLVM support library is compiled with debug info, and that your debugger can find it? If not, I think the solution would be to address that.

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


More information about the llvm-commits mailing list