[clang] [clang] Remove unused declarations in CGDebugInfo (NFC) (PR #239487)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 10 20:39:43 PST 2026
kazutakahirata wrote:
@efriedma-quic @Alexander-Johnston The dangling `friend class SaveAndRestoreLocation` declaration was suppressing `-Wunused-private-field` on `CGDebugInfo`, hiding the unused fields added in #224277.
In `CGDebugInfo::CreateType`, those fields look unneeded:
- `HLSLIntangibleTypes.def` calls `getOrCreateStructPtrType`, which needs a `DIType *&` cache field.
- `HLSLPackedTypes.def` calls `DBuilder.createBasicType` directly, so it does not use cache fields in `CGDebugInfo.h`.
https://github.com/llvm/llvm-project/pull/239487
More information about the cfe-commits
mailing list