[all-commits] [llvm/llvm-project] 6be3cc: [LLDB][NativePDB] Fix name access for classes in `...
nerix via All-commits
all-commits at lists.llvm.org
Wed Jul 30 09:12:19 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6be3cc5ad5ee0d33264bc202005e93c667b67698
https://github.com/llvm/llvm-project/commit/6be3cc5ad5ee0d33264bc202005e93c667b67698
Author: nerix <nerixdev at outlook.de>
Date: 2025-07-30 (Wed, 30 Jul 2025)
Changed paths:
M lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.h
Log Message:
-----------
[LLDB][NativePDB] Fix name access for classes in `CVTagRecord::name` (#151190)
From
https://github.com/llvm/llvm-project/pull/149876#discussion_r2240478480:
The `name()` accessor checked for `m_kind == Union` and accessed
`cvclass` instead of `cvunion`. This is technically wrong (maybe UB
even?).
In practice, this wasn't an issue, because all types in the union
(`ClassRecord`/`EnumRecord`/`UnionRecord`) inherit from `TagRecord`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list